Aikido
|
CRTP RAII wrapper for a StateHandle
.
More...
#include <aikido/statespace/ScopedState.hpp>
Public Types | |
using | Handle = _Handle |
Public Member Functions | |
ScopedState (const StateSpace *_space) | |
Construct a ScopedState by allocating a new state in _space . More... | |
virtual | ~ScopedState () |
ScopedState (const ScopedState &)=delete | |
ScopedState & | operator= (const ScopedState &)=delete |
ScopedState (ScopedState &&)=default | |
ScopedState & | operator= (ScopedState &&)=default |
ScopedState | clone () const |
Creates an identical clone of the state this ScopedState handles. More... | |
Private Attributes | |
std::unique_ptr< char[]> | mBuffer |
CRTP RAII wrapper for a StateHandle
.
The constructor of ScopedState
allocates a state and the destructor destroys it.
_Handle | StateHandle class being wrapped. |
using aikido::statespace::ScopedState< _Handle >::Handle = _Handle |
|
explicit |
Construct a ScopedState
by allocating a new state in _space
.
This state will be freed when ScopedState
is destructed.
_space | state |
|
virtual |
|
delete |
|
default |
ScopedState< Handle > aikido::statespace::ScopedState< Handle >::clone |
Creates an identical clone of the state this ScopedState handles.
|
delete |
|
default |
|
private |