33 #ifndef DART_COMMON_DETAIL_ASPECT_HPP_
34 #define DART_COMMON_DETAIL_ASPECT_HPP_
45 template <
class CompositeType>
53 template <
class CompositeType>
60 template <
class CompositeType>
67 template <
class CompositeType>
70 return (
nullptr != mComposite);
74 template <
class CompositeType>
77 assert(
nullptr == mComposite);
79 mComposite =
dynamic_cast<CompositeType*
>(newComposite);
86 template <
class CompositeType>
91 assert(oldComposite == mComposite);
#define DART_UNUSED(x)
Definition: StlHelpers.hpp:44
CompositeTrackingAspect()
Default constructor.
Definition: Aspect.hpp:46
void setComposite(Composite *newComposite) override
Grab the new Composite.
Definition: Aspect.hpp:75
CompositeType * getComposite()
Get the Composite of this Aspect.
Definition: Aspect.hpp:54
bool hasComposite() const
Returns true if this Aspect has a Composite that matches CompositeType.
Definition: Aspect.hpp:68
void loseComposite(Composite *oldComposite) override
Clear the old Composite.
Definition: Aspect.hpp:87
Composite is a base class that should be virtually inherited by any class that wants to be able to ma...
Definition: Composite.hpp:52
Definition: BulletCollisionDetector.cpp:63