|
Aikido
|
RAII class to save and restore a World's state. More...
#include <aikido/planner/WorldStateSaver.hpp>
Public Types | |
| enum | Options { CONFIGURATIONS = 1 << 0 } |
| Options to specify what WorldStateSaver should save. More... | |
Public Member Functions | |
| WorldStateSaver (World *world, int options=CONFIGURATIONS) | |
Construct a WorldStateSaver and save the current state of the World. More... | |
| virtual | ~WorldStateSaver () |
Private Attributes | |
| World * | mWorld |
| World to save the state of. More... | |
| int | mOptions |
| Options to specify what should be saved. More... | |
| World::State | mWorldState |
| Saved state. More... | |
RAII class to save and restore a World's state.
Options to specify what WorldStateSaver should save.
| Enumerator | |
|---|---|
| CONFIGURATIONS | |
|
explicit |
Construct a WorldStateSaver and save the current state of the World.
This state will be restored when WorldStateSaver is destructed.
| [in] | world | World to save state from and restore to. |
| [in] | options | Options to specify what should be saved |
|
virtual |
|
private |
Options to specify what should be saved.
|
private |
Saved state.