DART
6.10.1
|
AspectWithProtectedState generates implementations of the State managing functions for an Aspect class. More...
#include <AspectWithVersion.hpp>
Public Types | |
using | Base = BaseT |
using | Derived = DerivedT |
using | StateData = StateDataT |
using | CompositeType = CompositeT |
using | State = Aspect::MakeState< StateData > |
using | AspectImplementation = AspectWithState< Base, Derived, StateData, CompositeT, updateState > |
Public Member Functions | |
AspectWithState (const AspectWithState &)=delete | |
AspectWithState (const StateData &state=StateData()) | |
Construct using a StateData instance. More... | |
template<typename... BaseArgs> | |
AspectWithState (const StateData &state, BaseArgs &&... args) | |
Construct this Aspect and pass args into the constructor of the Base class. More... | |
void | setAspectState (const Aspect::State &otherState) override final |
const Aspect::State * | getAspectState () const override final |
void | setState (const StateData &state) |
Set the State of this Aspect. More... | |
const State & | getState () const |
Get the State of this Aspect. More... | |
std::unique_ptr< Aspect > | cloneAspect () const override |
Static Public Attributes | |
constexpr static void(* | UpdateState )(Derived *) = updateState |
Protected Attributes | |
State | mState |
State of this Aspect. More... | |
AspectWithProtectedState generates implementations of the State managing functions for an Aspect class.
using dart::common::detail::AspectWithState< BaseT, DerivedT, StateDataT, CompositeT, updateState >::AspectImplementation = AspectWithState<Base, Derived, StateData, CompositeT, updateState> |
using dart::common::detail::AspectWithState< BaseT, DerivedT, StateDataT, CompositeT, updateState >::Base = BaseT |
using dart::common::detail::AspectWithState< BaseT, DerivedT, StateDataT, CompositeT, updateState >::CompositeType = CompositeT |
using dart::common::detail::AspectWithState< BaseT, DerivedT, StateDataT, CompositeT, updateState >::Derived = DerivedT |
using dart::common::detail::AspectWithState< BaseT, DerivedT, StateDataT, CompositeT, updateState >::State = Aspect::MakeState<StateData> |
using dart::common::detail::AspectWithState< BaseT, DerivedT, StateDataT, CompositeT, updateState >::StateData = StateDataT |
|
delete |
dart::common::detail::AspectWithState< BaseT, DerivedT, StateDataT, CompositeT, updateState >::AspectWithState | ( | const StateData & | state = StateData() | ) |
Construct using a StateData instance.
|
inline |
Construct this Aspect and pass args into the constructor of the Base class.
|
override |
|
finaloverride |
auto dart::common::detail::AspectWithState< BaseT, DerivedT, StateDataT, CompositeT, updateState >::getState |
Get the State of this Aspect.
|
finaloverride |
void dart::common::detail::AspectWithState< BaseT, DerivedT, StateData, CompositeT, updateState >::setState | ( | const StateData & | state | ) |
Set the State of this Aspect.
|
protected |
State of this Aspect.
|
staticconstexpr |