class for enabling statelessness in classes that are data containers
More...
#include <StatelessData.hpp>
template<class DATA>
class rw::kinematics::StatelessData< DATA >
class for enabling statelessness in classes that are data containers
◆ StatelessData() [1/2]
constructor
- Parameters
-
dN | [in] the number of elements of type DATA that should be allocated in the state. |
◆ StatelessData() [2/2]
constructor
- Parameters
-
dN | [in] the number of elements of type DATA that should be allocated in the state. |
cache | [in] data cache. |
◆ get() [1/4]
get the data from the state
- Parameters
-
state | [in] the state in which the data is saved |
- Returns
- reference to data
◆ get() [2/4]
get the data from the state
- Parameters
-
state | [in] the state in which the data is saved |
- Returns
- reference to data
◆ get() [3/4]
get the data from the state
- Parameters
-
i | [in] the index of the data. |
state | [in] the state in which the data is saved |
- Returns
- reference to data
◆ get() [4/4]
get the data from the state
- Parameters
-
i | [in] the index of the data. |
state | [in] the state in which the data is saved |
- Returns
- reference to data
◆ getArray()
get the data from the state
- Parameters
-
state | [in] the state in which the data is saved |
- Returns
- reference to data
◆ getN()
number of array elements
- Returns
- number of elements in array
◆ getStateCache() [1/2]
get the cache of this statedata object. If it has no cache then the returned pointer will be NULL.
- Parameters
-
state | [in] state in which to get cache from. |
- Returns
◆ getStateCache() [2/2]
get the cache of this statedata object. If it has no cache then the returned pointer will be NULL.
- Parameters
-
state | [in] state in which to get cache from. |
- Returns
◆ getStateData()
Get the state data.
- Returns
- state data.
◆ init()
void init |
( |
State & |
state | ) |
|
|
inline |
initialize this stateless data to a specific state
- Parameters
-
state | [in] the state in which to register the data. |
- Note
- the data will be registered in the state structure of the state and any copies or other instances of the state will therefore also contain the added states.
◆ set() [1/2]
set data element in state
- Parameters
-
data | [in] data to copy into state |
i | [in] the index of the data. |
state | [in] the state in which to change data |
◆ set() [2/2]
set data element in state
- Parameters
-
data | [in] data to copy into state |
state | [in] the state in which to change data |
The documentation for this class was generated from the following file: