API  4.3
For C++ developers
OpenSim::AbstractValueArray Class Referenceabstract

ValueArray (of type T) represents an array of SimTK::Value (of type T). More...

+ Inheritance diagram for OpenSim::AbstractValueArray:

Public Member Functions

 AbstractValueArray ()=default
 
 AbstractValueArray (const AbstractValueArray &)=default
 
 AbstractValueArray (AbstractValueArray &&)=default
 
AbstractValueArrayoperator= (const AbstractValueArray &)=default
 
AbstractValueArrayoperator= (AbstractValueArray &&)=default
 
virtual ~AbstractValueArray ()=default
 
virtual AbstractValueArrayclone () const =0
 
virtual size_t size () const =0
 Get the size of the array. More...
 
virtual AbstractValueoperator[] (size_t index)=0
 Access an element of the array using its index. More...
 
virtual const AbstractValueoperator[] (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
 

Detailed Description

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).

Member Typedef Documentation

◆ AbstractValue

using OpenSim::AbstractValueArray::AbstractValue = SimTK::AbstractValue

Constructor & Destructor Documentation

◆ AbstractValueArray() [1/3]

OpenSim::AbstractValueArray::AbstractValueArray ( )
default

◆ AbstractValueArray() [2/3]

OpenSim::AbstractValueArray::AbstractValueArray ( const AbstractValueArray )
default

◆ AbstractValueArray() [3/3]

OpenSim::AbstractValueArray::AbstractValueArray ( AbstractValueArray &&  )
default

◆ ~AbstractValueArray()

virtual OpenSim::AbstractValueArray::~AbstractValueArray ( )
virtualdefault

Member Function Documentation

◆ clone()

virtual AbstractValueArray* OpenSim::AbstractValueArray::clone ( ) const
pure virtual

◆ operator=() [1/2]

AbstractValueArray& OpenSim::AbstractValueArray::operator= ( const AbstractValueArray )
default

◆ operator=() [2/2]

AbstractValueArray& OpenSim::AbstractValueArray::operator= ( AbstractValueArray &&  )
default

◆ operator[]() [1/2]

virtual AbstractValue& OpenSim::AbstractValueArray::operator[] ( size_t  index)
pure virtual

Access an element of the array using its index.

Implemented in OpenSim::ValueArray< T >.

◆ operator[]() [2/2]

virtual const AbstractValue& OpenSim::AbstractValueArray::operator[] ( size_t  index) const
pure virtual

Access an element of the array using its index.

Implemented in OpenSim::ValueArray< T >.

◆ size()

virtual size_t OpenSim::AbstractValueArray::size ( ) const
pure virtual

◆ toString()

virtual std::string OpenSim::AbstractValueArray::toString ( const size_t  index) const
pure virtual

Get value corresponding to the given index as string.

Implemented in OpenSim::ValueArray< T >.


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