Wrap a State with its StateSpace to provide convenient accessor methods.
More...
#include <StateHandle.hpp>
|
|
using | StateSpace = _StateSpace |
| |
|
using | QualifiedState = _QualifiedState |
| |
|
using | State = typename StateSpace::State |
| |
|
using | ConstState = typename std::conditional< std::is_const< QualifiedState >::value, QualifiedState, const QualifiedState >::type |
| |
|
|
const StateSpace * | mSpace |
| | State space of the sate that is managed by this handler.
|
| |
|
QualifiedState * | mState |
| | State managed by this handler. This can be either const or non-const type.
|
| |
template<class _StateSpace, class _QualifiedState>
class aikido::statespace::StateHandle< _StateSpace, _QualifiedState >
Wrap a State with its StateSpace to provide convenient accessor methods.
The template parameter _QualifiedState is necessary to support both const and non-const states.
- Template Parameters
-
| _StateSpace | Type of StateSpace this state is a member of |
| _QualifiedState | Type of State being wrapped |
§ StateHandle()
template<class StateSpace , class QualifiedState >
Wrap state, which must be form the provided StateSpace.
- Parameters
-
| space | State space that created state. |
| state | State created by space. |
§ getState() [1/2]
template<class StateSpace , class QualifiedState >
template<typename Q >
Returns the State.
This function is enabled only if QualifiedState is a non-const State type.
- Returns
- state wrapped by this handle
§ getState() [2/2]
template<class StateSpace , class QualifiedState >
template<typename Q >
| auto aikido::statespace::StateHandle< StateSpace, QualifiedState >::getState |
( |
| ) |
const -> typename std::conditional<std::is_const<Q>::value, Q*, const Q*>::type |
Returns the State.
- Returns
- State wrapped by this handle
§ getStateSpace()
template<class _StateSpace , class _QualifiedState >
Returns the state space that created this state.
- Returns
- State space created this state
§ reset()
template<class StateSpace , class QualifiedState >
Resets the state, which must be from the provided StateSpace.
- Parameters
-
| space | State space that created state. |
| state | State created by space. |
The documentation for this class was generated from the following files: