API
4.5.1
For C++ developers
|
ValueArray (of type T) represents an array of SimTK::Value (of type T). More...
Public Member Functions | |
AbstractValueArray ()=default | |
AbstractValueArray (const AbstractValueArray &)=default | |
AbstractValueArray (AbstractValueArray &&)=default | |
AbstractValueArray & | operator= (const AbstractValueArray &)=default |
AbstractValueArray & | operator= (AbstractValueArray &&)=default |
virtual | ~AbstractValueArray ()=default |
virtual AbstractValueArray * | clone () const =0 |
virtual size_t | size () const =0 |
Get the size of the array. More... | |
virtual AbstractValue & | operator[] (size_t index)=0 |
Access an element of the array using its index. More... | |
virtual const AbstractValue & | operator[] (size_t index) const =0 |
Access an element of the array using its index. More... | |
virtual std::string | toString (const size_t index) const =0 |
Get value corresponding to the given index as string. More... | |
Public Types | |
using | AbstractValue = SimTK::AbstractValue |
ValueArray (of type T) represents an array of SimTK::Value (of type T).
AbstractValueArray is the base class of all ValueArray thereby hiding the type of the underlying array (which is T).
using OpenSim::AbstractValueArray::AbstractValue = SimTK::AbstractValue |
|
default |
|
default |
|
default |
|
virtualdefault |
|
pure virtual |
Implemented in OpenSim::ValueArray< T >.
Referenced by OpenSim::ValueArrayDictionary::setValueArrayForKey().
|
default |
|
default |
|
pure virtual |
Access an element of the array using its index.
Implemented in OpenSim::ValueArray< T >.
|
pure virtual |
Access an element of the array using its index.
Implemented in OpenSim::ValueArray< T >.
|
pure virtual |
Get the size of the array.
Implemented in OpenSim::ValueArray< T >.
Referenced by OpenSim::DataTable_< double, SimTK::Real >::validateDependentsMetaData().
|
pure virtual |
Get value corresponding to the given index as string.
Implemented in OpenSim::ValueArray< T >.