#include <PropertyIntArray.h>
Public Member Functions | |
PropertyIntArray () | |
Default Constructor. | |
PropertyIntArray (const std::string &aName, const Array< int > &aArray) | |
PropertyIntArray (const std::string &aName, int aSize, const int aArray[]) | |
PropertyIntArray (const PropertyIntArray &aProperty) | |
Copy constructor. | |
virtual Property * | copy () const |
Construct and return a copy of this property. | |
virtual | ~PropertyIntArray () |
PropertyIntArray & | operator= (const PropertyIntArray &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< int > &aArray) |
Set the value of this property. | |
virtual void | setValue (int aSize, const int aArray[]) |
Set the value of this property. | |
virtual Array< int > & | getValueIntArray () |
Get a reference to the value of this property. | |
virtual const Array< int > & | getValueIntArray () const |
Get a constant reference to the value of this property. | |
virtual int | getArraySize () const |
virtual const std::string & | toString () |
Get a constant String represeting the value of this property. |
PropertyIntArray::PropertyIntArray | ( | ) |
Default Constructor.
OpenSim::PropertyIntArray::PropertyIntArray | ( | const std::string & | aName, | |
const Array< int > & | aArray | |||
) |
OpenSim::PropertyIntArray::PropertyIntArray | ( | const std::string & | aName, | |
int | aSize, | |||
const int | aArray[] | |||
) |
PropertyIntArray::PropertyIntArray | ( | const PropertyIntArray & | aProperty | ) |
Copy constructor.
aProperty | Property to be copied. |
virtual OpenSim::PropertyIntArray::~PropertyIntArray | ( | ) | [inline, virtual] |
Property * PropertyIntArray::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.
virtual int OpenSim::PropertyIntArray::getArraySize | ( | ) | const [inline, virtual] |
Reimplemented from OpenSim::Property.
const char * PropertyIntArray::getTypeAsString | ( | ) | const [virtual] |
Get the type of this property as a string.
Reimplemented from OpenSim::Property.
const Array< int > & PropertyIntArray::getValueIntArray | ( | ) | const [virtual] |
Get a constant reference to the value of this property.
Reimplemented from OpenSim::Property.
Array< int > & PropertyIntArray::getValueIntArray | ( | ) | [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.
PropertyIntArray & PropertyIntArray::operator= | ( | const PropertyIntArray & | aProperty | ) |
Assign this property to another.
aProperty | Property to which to assign this property. |
Reimplemented from OpenSim::Property.
void PropertyIntArray::setValue | ( | int | aSize, | |
const int | 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.
void PropertyIntArray::setValue | ( | const Array< int > & | aArray | ) | [virtual] |
Set the value of this property.
aArray | Array to which this property is to be assigned. |
Reimplemented from OpenSim::Property.
const string & PropertyIntArray::toString | ( | ) | [virtual] |
Get a constant String represeting the value of this property.
Implements OpenSim::Property.