Template Class ScopedState

Class Documentation

template<size_t N>
class ScopedState

object sets a state on construction, clears on destruction

This class is used to create a scoped state object. Constructed with a state manager object and a state, the state is set on construction and when this object goes out of scope the state is cleared.

Public Functions

inline ScopedState(ImprovedStateManager<N> &manager, size_t statebit)
inline ScopedState(ImprovedStateManager<N> &manager, size_t statebit, bool setonly)
inline ~ScopedState()
inline void destruct_set(size_t destructbit)