25 #ifndef __TERRALIB_COMMON_INTERNAL_DECORATOR_H 26 #define __TERRALIB_COMMON_INTERNAL_DECORATOR_H 56 Decorator(T* decorated,
bool deleteDecorated =
false);
156 if(decorated ==
this)
178 #endif //__TERRALIB_COMMON_INTERNAL_DECORATOR_H Decorator(T *decorated, bool deleteDecorated=false)
Constructor.
T * removeDecorator(T *decorated)
Removes The decorator of the decorated.
bool m_delDecorated
If true, also delete decorated pointer.
T * getDecorated()
Returns the pointer of decorated object.
Decorator & operator=(const Decorator &rhs)
Copy operator.
T * m_decorated
The object decorated.
T * findDecorator(T *decorated)
Returns the Decorator that decorates this item.
virtual ~Decorator()
Virtual destructor.