DART  6.6.2
Aspect.hpp File Reference
#include <string>
#include "dart/common/Cloneable.hpp"
#include "dart/common/detail/NoOp.hpp"
#include "dart/common/detail/Aspect.hpp"

Go to the source code of this file.

Classes

class  dart::common::Aspect
 
class  dart::common::Aspect::State
 If your Aspect has a State, then that State class should inherit this Aspect::State class. More...
 
class  dart::common::Aspect::Properties
 If your Aspect has Properties, then that Properties class should inherit this Aspect::Properties class. More...
 
class  dart::common::CompositeTrackingAspect< CompositeType >
 

Namespaces

 dart
 
 dart::common
 

Macros

#define DART_COMMON_ASPECT_PROPERTY_CONSTRUCTOR(ClassName, UpdatePropertiesMacro)
 
#define DART_COMMON_ASPECT_STATE_PROPERTY_CONSTRUCTORS(ClassName)
 
#define DART_COMMON_SET_ASPECT_PROPERTY_CUSTOM(Type, Name, Update)
 
#define DART_COMMON_SET_ASPECT_PROPERTY(Type, Name)    DART_COMMON_SET_ASPECT_PROPERTY_CUSTOM( Type, Name, notifyPropertiesUpdated )
 
#define DART_COMMON_GET_ASPECT_PROPERTY(Type, Name)
 
#define DART_COMMON_SET_GET_ASPECT_PROPERTY(Type, Name)
 

Macro Definition Documentation

◆ DART_COMMON_ASPECT_PROPERTY_CONSTRUCTOR

#define DART_COMMON_ASPECT_PROPERTY_CONSTRUCTOR (   ClassName,
  UpdatePropertiesMacro 
)
Value:
ClassName (const ClassName &) = delete;\
inline ClassName (const PropertiesData& properties = PropertiesData())\
: AspectWithVersionedProperties< Base, Derived, PropertiesData, CompositeType, UpdatePropertiesMacro>(properties) { }
BodyPropPtr properties
Definition: SdfParser.cpp:80

◆ DART_COMMON_ASPECT_STATE_PROPERTY_CONSTRUCTORS

#define DART_COMMON_ASPECT_STATE_PROPERTY_CONSTRUCTORS (   ClassName)
Value:
ClassName (const ClassName &) = delete;\
inline ClassName (const StateData& state = StateData(), const PropertiesData& properties = PropertiesData())\
: AspectImpl(state, properties) { }\
inline ClassName (const PropertiesData& properties, const StateData state = StateData())\
: AspectImpl(properties, state) { }

◆ DART_COMMON_GET_ASPECT_PROPERTY

#define DART_COMMON_GET_ASPECT_PROPERTY (   Type,
  Name 
)
Value:
inline const Type& get ## Name () const\
{ return mProperties.m ## Name; }

◆ DART_COMMON_SET_ASPECT_PROPERTY

#define DART_COMMON_SET_ASPECT_PROPERTY (   Type,
  Name 
)     DART_COMMON_SET_ASPECT_PROPERTY_CUSTOM( Type, Name, notifyPropertiesUpdated )

◆ DART_COMMON_SET_ASPECT_PROPERTY_CUSTOM

#define DART_COMMON_SET_ASPECT_PROPERTY_CUSTOM (   Type,
  Name,
  Update 
)
Value:
inline void set ## Name (const Type & value)\
{ mProperties.m ## Name = value; Update(); }

◆ DART_COMMON_SET_GET_ASPECT_PROPERTY

#define DART_COMMON_SET_GET_ASPECT_PROPERTY (   Type,
  Name 
)
Value:
DART_COMMON_GET_ASPECT_PROPERTY( Type, Name )
#define DART_COMMON_SET_ASPECT_PROPERTY(Type, Name)
Definition: Aspect.hpp:180