25 #ifndef __TERRALIB_COMMON_INTERNAL_DECORATOR_H
26 #define __TERRALIB_COMMON_INTERNAL_DECORATOR_H
56 Decorator(T* decorated,
bool deleteDecorated =
false);
89 m_decorated(decorated),
90 m_delDecorated(deleteDecorated)
103 : m_decorated(rhs.m_decorated),
104 m_delDecorated(rhs.m_delDecorated)
126 #endif //__TERRALIB_COMMON_INTERNAL_DECORATOR_H
Decorator(T *decorated, bool deleteDecorated=false)
Constructor.
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.
virtual ~Decorator()
Virtual destructor.