33#ifndef DART_COMMON_DETAIL_ASPECT_HPP_
34#define DART_COMMON_DETAIL_ASPECT_HPP_
46template <
class CompositeType>
55template <
class CompositeType>
62template <
class CompositeType>
70template <
class CompositeType>
73 return (
nullptr != mComposite);
77template <
class CompositeType>
81 assert(
nullptr == mComposite);
83 mComposite =
dynamic_cast<CompositeType*
>(newComposite);
90template <
class CompositeType>
95 assert(oldComposite == mComposite);
#define DART_UNUSED(...)
Definition Macros.hpp:63
CompositeTrackingAspect()
Default constructor.
Definition Aspect.hpp:47
void setComposite(Composite *newComposite) override
Grab the new Composite.
Definition Aspect.hpp:78
CompositeType * getComposite()
Get the Composite of this Aspect.
Definition Aspect.hpp:56
bool hasComposite() const
Returns true if this Aspect has a Composite that matches CompositeType.
Definition Aspect.hpp:71
void loseComposite(Composite *oldComposite) override
Clear the old Composite.
Definition Aspect.hpp:91
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:60