![]() |
RobWorkProject
25.2.11-
|
interface for a stateless or typically a part stateless class. More...
#include <Stateless.hpp>
Inherited by ControllerModel, Device, Object, SensorModel, SimulatedController, SimulatedSensor, Body, and DynamicDevice.
Public Types | |
typedef rw::core::Ptr< Stateless > | Ptr |
Smart pointer type to a Stateless. | |
typedef rw::core::Ptr< const Stateless > | CPtr |
Smart pointer type to a constant Stateless. | |
Public Member Functions | |
virtual | ~Stateless () |
destructor | |
virtual void | registerIn (State &state) |
initialize this stateless data to a specific state More... | |
virtual void | registerIn (StateStructure::Ptr state) |
register this stateless object in a statestructure. | |
virtual void | unregister () |
unregisters all state data of this stateless object | |
StateStructure::Ptr | getStateStructure () |
Get the state structure. More... | |
const StateStructure::Ptr | getStateStructure () const |
Get the state structure. More... | |
bool | isRegistered () |
Check if object has registered its state. More... | |
Protected Member Functions | |
Stateless () | |
constructor | |
template<class T > | |
void | add (StatelessData< T > &data) |
implementations of sensor should add all their stateless data on initialization | |
void | add (StateData *data) |
Add data. More... | |
void | add (rw::core::Ptr< StateData > data) |
implementations of sensor should add all their state data on initialization | |
Protected Attributes | |
bool | _registered |
True if object has registered its state. | |
std::vector< rw::core::Ptr< StateData > > | _datas |
Data. | |
StateStructure::Ptr | _stateStruct |
The state structure. | |
interface for a stateless or typically a part stateless class.
|
inlineprotected |
Add data.
data | [in] data to add. |
|
inline |
Get the state structure.
|
inline |
Get the state structure.
|
inline |
Check if object has registered its state.
|
virtual |
initialize this stateless data to a specific state
state | [in] the state in which to register the data. |