#include <PropertyDblArray.h>
Public Member Functions | |
PropertyDblArray () | |
Default Constructor. | |
PropertyDblArray (const std::string &aName, const Array< double > &aArray) | |
PropertyDblArray (const std::string &aName, int aSize, const double aArray[]) | |
PropertyDblArray (const PropertyDblArray &aProperty) | |
Copy constructor. | |
virtual Property * | copy () const |
Construct and return a copy of this property. | |
virtual | ~PropertyDblArray () |
PropertyDblArray & | operator= (const PropertyDblArray &aProperty) |
Assign this property to another. | |
virtual const char * | getTypeAsString () const |
Get the type of this property as a string. | |
virtual void | setValue (const Array< double > &aArray) |
Set the value of this property. | |
virtual void | setValue (int aSize, const double aArray[]) |
Set the value of this property. | |
virtual Array< double > & | getValueDblArray () |
Get a reference to the value of this property. | |
virtual const Array< double > & | getValueDblArray () const |
Get a constant reference to the value of this property. | |
virtual const std::string & | toString () |
Get a constant String represeting the value of this property. | |
virtual int | getArraySize () const |
Protected Attributes | |
Array< double > | _array |
Array of integers. |
PropertyDblArray::PropertyDblArray | ( | ) |
Default Constructor.
OpenSim::PropertyDblArray::PropertyDblArray | ( | const std::string & | aName, | |
const Array< double > & | aArray | |||
) |
OpenSim::PropertyDblArray::PropertyDblArray | ( | const std::string & | aName, | |
int | aSize, | |||
const double | aArray[] | |||
) |
PropertyDblArray::PropertyDblArray | ( | const PropertyDblArray & | aProperty | ) |
Copy constructor.
aProperty | Property to be copied. |
virtual OpenSim::PropertyDblArray::~PropertyDblArray | ( | ) | [inline, virtual] |
Property * PropertyDblArray::copy | ( | ) | const [virtual] |
Construct and return a copy of this property.
The property is allocated using the new operator, so the caller is responsible for deleting the returned object.
Implements OpenSim::Property.
Reimplemented in OpenSim::PropertyTransform.
virtual int OpenSim::PropertyDblArray::getArraySize | ( | ) | const [inline, virtual] |
Reimplemented from OpenSim::Property.
const char * PropertyDblArray::getTypeAsString | ( | ) | const [virtual] |
Get the type of this property as a string.
Reimplemented from OpenSim::Property.
Reimplemented in OpenSim::PropertyTransform.
const Array< double > & PropertyDblArray::getValueDblArray | ( | ) | const [virtual] |
Get a constant reference to the value of this property.
Reimplemented from OpenSim::Property.
Array< double > & PropertyDblArray::getValueDblArray | ( | ) | [virtual] |
Get a reference to the value of this property.
Note that the returned reference can be used to change the value of this property.
Reimplemented from OpenSim::Property.
PropertyDblArray & PropertyDblArray::operator= | ( | const PropertyDblArray & | aProperty | ) |
Assign this property to another.
aProperty | Property to which to assign this property. |
Reimplemented from OpenSim::Property.
Reimplemented in OpenSim::PropertyTransform.
void PropertyDblArray::setValue | ( | int | aSize, | |
const double | aArray[] | |||
) | [virtual] |
Set the value of this property.
aSize | Size of the specified array. | |
aValue | Array to which this property is to be assigned. |
Reimplemented from OpenSim::Property.
Reimplemented in OpenSim::PropertyTransform.
void PropertyDblArray::setValue | ( | const Array< double > & | aArray | ) | [virtual] |
Set the value of this property.
aArray | Array to which this property is to be assigned. |
Reimplemented from OpenSim::Property.
const string & PropertyDblArray::toString | ( | ) | [virtual] |
Get a constant String represeting the value of this property.
Implements OpenSim::Property.
Reimplemented in OpenSim::PropertyTransform.
Array<double> OpenSim::PropertyDblArray::_array [protected] |
Array of integers.