33#ifndef DART_COMMON_DETAIL_ASPECT_HPP_
34#define DART_COMMON_DETAIL_ASPECT_HPP_
45template <
class CompositeType>
54template <
class CompositeType>
61template <
class CompositeType>
69template <
class CompositeType>
72 return (
nullptr != mComposite);
76template <
class CompositeType>
80 assert(
nullptr == mComposite);
82 mComposite =
dynamic_cast<CompositeType*
>(newComposite);
89template <
class CompositeType>
94 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:77
CompositeType * getComposite()
Get the Composite of this Aspect.
Definition Aspect.hpp:55
bool hasComposite() const
Returns true if this Aspect has a Composite that matches CompositeType.
Definition Aspect.hpp:70
void loseComposite(Composite *oldComposite) override
Clear the old Composite.
Definition Aspect.hpp:90
Composite is a base class that should be virtually inherited by any class that wants to be able to ma...
Definition Composite.hpp:53
Definition BulletCollisionDetector.cpp:65