dart
|
This is the implementation of a standard combination of embedded-state and embedded-properties Aspect. More...
#include <EmbeddedAspect.hpp>
Public Types | |
using | Derived = EmbeddedStateAndPropertiesAspect< CompositeT, StateDataT, PropertiesDataT > |
using | AspectStateImpl = detail::EmbeddedStateAspect< CompositeTrackingAspect< CompositeT >, Derived, StateDataT > |
using | AspectPropertiesImpl = detail::EmbeddedPropertiesAspect< AspectStateImpl, Derived, PropertiesDataT > |
using | AspectImpl = Derived |
using | State = typename AspectStateImpl::State |
using | StateData = typename AspectStateImpl::StateData |
using | Properties = typename AspectPropertiesImpl::Properties |
using | PropertiesData = typename AspectPropertiesImpl::PropertiesData |
using | CompositeType = CompositeT |
![]() | |
using | Base = detail::EmbeddedStateAspect< CompositeTrackingAspect< CompositeT >, EmbeddedStateAndPropertiesAspect< CompositeT, StateDataT, PropertiesDataT >, StateDataT > |
using | Derived = EmbeddedStateAndPropertiesAspect< CompositeT, StateDataT, PropertiesDataT > |
using | Properties = common::Aspect::MakeProperties< PropertiesDataT > |
using | PropertiesData = PropertiesDataT |
![]() | |
enum | DelegateTag |
using | Base = CompositeTrackingAspect< CompositeT > |
using | Derived = EmbeddedStateAndPropertiesAspect< CompositeT, StateDataT, PropertiesDataT > |
using | State = common::Aspect::MakeState< StateDataT > |
using | StateData = StateDataT |
![]() | |
template<class Mixin > | |
using | MakeState = MakeCloneable< State, Mixin > |
Use the MakeState class to easily create a State extension from an existing class or struct. More... | |
template<class Mixin > | |
using | MakeProperties = MakeCloneable< Properties, Mixin > |
Use the MakeProperties class to easily create a Properties extension from an existing class or struct. More... | |
Public Member Functions | |
EmbeddedStateAndPropertiesAspect (const EmbeddedStateAndPropertiesAspect &)=delete | |
EmbeddedStateAndPropertiesAspect () | |
Construct using nothing. The object will remain unaffected. | |
EmbeddedStateAndPropertiesAspect (const StateData &state) | |
Construct using a State. The object's Properties will remain unaffected. | |
EmbeddedStateAndPropertiesAspect (const PropertiesData &properties) | |
Construct using Properties. The object's State will remain unaffected. | |
EmbeddedStateAndPropertiesAspect (const StateData &state, const PropertiesData &properties) | |
Construct using a State and Properties instance. | |
EmbeddedStateAndPropertiesAspect (const PropertiesData &properties, const StateData &state) | |
Construct using a Properties and State instance. | |
std::unique_ptr< Aspect > | cloneAspect () const override |
Clone this Aspect into a new composite. | |
![]() | |
EmbeddedPropertiesAspect (const EmbeddedPropertiesAspect &)=delete | |
EmbeddedPropertiesAspect () | |
Construct this Aspect without affecting the Properties. | |
EmbeddedPropertiesAspect (const T &arg1, RemainingArgs &&... remainingArgs) | |
Construct this Aspect. More... | |
void | setAspectProperties (const Aspect::Properties &properties) override final |
void | setProperties (const Properties &properties) |
const Aspect::Properties * | getAspectProperties () const override final |
const Properties & | getProperties () const |
std::unique_ptr< Aspect > | cloneAspect () const override |
![]() | |
EmbeddedStateAspect (const EmbeddedStateAspect &)=delete | |
EmbeddedStateAspect () | |
Construct this Aspect without affecting the State. | |
EmbeddedStateAspect (const T &arg1, RemainingArgs &&... remainingArgs) | |
Construct this Aspect. More... | |
void | setAspectState (const Aspect::State &state) override final |
void | setState (const State &state) |
Set the State of this Aspect. | |
const Aspect::State * | getAspectState () const override final |
const State & | getState () const |
Get the State of this Aspect. | |
![]() | |
CompositeTrackingAspect () | |
Default constructor. | |
CompositeT * | getComposite () |
Get the Composite of this Aspect. | |
const CompositeT * | getComposite () const |
Get the Composite of this Aspect. | |
bool | hasComposite () const |
Returns true if this Aspect has a Composite that matches CompositeType. | |
![]() | |
virtual | ~Aspect ()=default |
Virtual destructor. | |
This is the implementation of a standard combination of embedded-state and embedded-properties Aspect.
Inherit the EmbedStateAndProperties (next class down in the header) to use this Aspect implementation.