33 #ifndef DART_COMMON_SUB_PTR_HPP_ 34 #define DART_COMMON_SUB_PTR_HPP_ 36 #include "dart/common/Observer.hpp" 101 #include "dart/common/detail/sub_ptr.hpp" 103 #endif // DART_COMMON_SUB_PTR_HPP_ sub_ptr is a pointer to a Subject.
Definition: sub_ptr.hpp:46
The Subject class is a base class for any object that wants to report when it gets destroyed...
Definition: Subject.hpp:57
bool valid()
True if and only if this sub_ptr still points to a valid Subject.
Definition: sub_ptr.hpp:121
void handleDestructionNotification(const Subject *_subject) override
Called by receiveDestructionNotification().
Definition: sub_ptr.hpp:128
T * operator->() const
Dereferencing operation.
Definition: sub_ptr.hpp:94
Definition: Aspect.cpp:40
T & operator*() const
Dereferencing operator.
Definition: sub_ptr.hpp:87
Subject * mSubjectBase
Store the pointer to the virtual Subject base.
Definition: sub_ptr.hpp:90
sub_ptr()
Default constructor.
Definition: sub_ptr.hpp:43
sub_ptr & operator=(const sub_ptr &_sp)
Change the Subject of this sub_ptr.
Definition: sub_ptr.hpp:64
The Observer class should be inherited by any class that wants to respond in a customized way to the ...
Definition: Observer.hpp:51
T * mT
Store the pointer to the full object.
Definition: sub_ptr.hpp:87