|
aikido
|
CRTP RAII wrapper for a StateHandle.
More...
#include <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... | |
| 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. | |
CRTP RAII wrapper for a StateHandle.
The constructor of ScopedState allocates a state and the destructor destroys it.
| _Handle | StateHandle class being wrapped. |
|
explicit |
Construct a ScopedState by allocating a new state in _space.
This state will be freed when ScopedState is destructed.
| _space | state |
1.8.12