9 #ifndef __WT_OBJECT_HH__
10 #define __WT_OBJECT_HH__
66 return 0 !=
dynamic_cast<typename T::ObjectType *
>(
_object);
73 return T(dynamic_cast<typename T::ObjectType *>(
_object));
86 #endif // __WT_OBJECT_HH__
bool isNull() const
Returns true if the container is empty (null).
Definition: object.hh:77
Object * _object
The object being managed.
Definition: object.hh:81
Object ObjectType
Specifies the object type being held by the container class.
Definition: object.hh:49
bool is()
Returns true if the object held by the container is of type T::ObjectType.
Definition: object.hh:65
Base class of all container classes holding a managed reference to some Object.
Definition: object.hh:45
Object * ref()
Retunrs a new reference to the object (increases the reference counter).
Definition: object.cc:16
void unref()
Invalidates this reference to the object (decreases the reference counter).
Definition: object.cc:22
Definition: convolution.hh:7
size_t _refCount
The reference counter.
Definition: object.hh:39
T as()
Dynamic container cast.
Definition: object.hh:72
Container()
Empty constructor.
Definition: object.cc:30
virtual ~Container()
Destructor.
Definition: object.cc:48
Base class of all managed objects.
Definition: object.hh:22
Container & operator=(const Container &other)
Assignment operator.
Definition: object.cc:53
Object()
Hidden constructor.
Definition: object.cc:5
virtual ~Object()
Destructor.
Definition: object.cc:11