OpenSim::PropertyDblArray Class Reference

#include <PropertyDblArray.h>

Inheritance diagram for OpenSim::PropertyDblArray:
OpenSim::Property OpenSim::PropertyTransform

List of all members.

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 Propertycopy () const
 Construct and return a copy of this property.
virtual ~PropertyDblArray ()
PropertyDblArrayoperator= (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.

Constructor & Destructor Documentation

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.

Parameters:
aProperty Property to be copied.
virtual OpenSim::PropertyDblArray::~PropertyDblArray (  )  [inline, virtual]

Member Function Documentation

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.

Returns:
Copy of this property.

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.

Returns:
Type of the property.

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.

Returns:
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.

Returns:
Reference to the value of this property.

Reimplemented from OpenSim::Property.

PropertyDblArray & PropertyDblArray::operator= ( const PropertyDblArray aProperty  ) 

Assign this property to another.

Parameters:
aProperty Property to which to assign this property.
Returns:
Reference to 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.

Parameters:
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.

Parameters:
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.

Returns:
Constant String represeting the value of this property.

Implements OpenSim::Property.

Reimplemented in OpenSim::PropertyTransform.


Member Data Documentation

Array of integers.


The documentation for this class was generated from the following files:

Generated on Sun Sep 25 00:19:50 2011 for OpenSim by  doxygen 1.6.1