|
aimstil
5.0.5
|
Smart pointer for objects that can be modified. More...
#include <til/Ptr.h>


Public Types | |
| typedef Ptr< T > | Self |
Public Types inherited from til::ConstPtr< T > | |
| typedef ConstPtr< T > | Self |
| typedef T | DataType |
Public Member Functions | |
| Ptr () | |
| Ptr (T *p) | |
| template<class U > | |
| Ptr (U *p) | |
| operator T* (void) const | |
| T & | operator* (void) const |
| T * | operator-> (void) const |
| Ptr & | operator= (T *p) |
Public Member Functions inherited from til::ConstPtr< T > | |
| ConstPtr () | |
| Default constructor, pointing to NULL. More... | |
| ConstPtr (const ConstPtr< T > &ptr) | |
| ConstPtr (const T *p) | |
| template<class U > | |
| ConstPtr (const U *p) | |
| virtual | ~ConstPtr () |
| operator const T * (void) const | |
| Convert a ConstPrt into a const T*. More... | |
| const T & | operator* (void) const |
| const T * | operator-> (void) const |
| ConstPtr & | operator= (const ConstPtr< T > &p) |
| ConstPtr & | operator= (const T *p) |
| Assignement to a pointer. More... | |
| bool | operator== (const T *p) const |
| Checks whether two pointers point to the same object. More... | |
| bool | operator== (const ConstPtr< T > &p) const |
| bool | operator!= (const T *p) const |
| Checks whether two pointers do not point to the same object. More... | |
| bool | operator!= (const ConstPtr< T > &p) const |
Additional Inherited Members | |
Protected Attributes inherited from til::ConstPtr< T > | |
| T * | m_pointer |
Smart pointer for objects that can be modified.
Simply overloads some of ConstPtr's operators to let us do non-const operations on the object.
|
inline |
Definition at line 195 of file Ptr.h.
References til::ConstPtr< T >::m_pointer.
|
inline |
Definition at line 196 of file Ptr.h.
References til::ConstPtr< T >::m_pointer.
|
inline |
Definition at line 197 of file Ptr.h.
References til::ConstPtr< T >::m_pointer.