#include <itkSmartPointer.h>
Public Types | |
typedef TObjectType | ObjectType |
Public Member Functions | |
SmartPointer () | |
SmartPointer (const SmartPointer< ObjectType > &p) | |
SmartPointer (ObjectType *p) | |
ObjectType * | operator-> () const |
operator ObjectType * () const | |
template<typename R> bool | operator== (R r) const |
template<typename R> bool | operator!= (R r) const |
ObjectType * | GetPointer () const |
bool | operator< (const SmartPointer &r) const |
bool | operator> (const SmartPointer &r) const |
bool | operator<= (const SmartPointer &r) const |
bool | operator>= (const SmartPointer &r) const |
SmartPointer & | operator= (const SmartPointer &r) |
~SmartPointer () | |
bool | IsNotNull () const |
bool | IsNull () const |
SmartPointer & | operator= (ObjectType *r) |
ObjectType * | Print (std::ostream &os) const |
SmartPointer implements reference counting by overloading operator -> (and *) among others. This allows natural interface to the class referred to by the pointer without having to invoke special Register()/UnRegister() methods directly.
To compile / test this class Windows: cl SmartPointerTest.cxx; ..exe linux: c++ SmartPointerTest.cxx ./a.out other: CCcompiler SmartPointerTest.cxx ./a.out
Definition at line 43 of file itkSmartPointer.h.
|
Definition at line 46 of file itkSmartPointer.h. |
|
Constructor Definition at line 49 of file itkSmartPointer.h. |
|
Copy constructor Definition at line 53 of file itkSmartPointer.h. |
|
Constructor to pointer p Definition at line 58 of file itkSmartPointer.h. |
|
Destructor Definition at line 63 of file itkSmartPointer.h. |
|
Access function to pointer. Definition at line 95 of file itkSmartPointer.h. Referenced by itk::SmartPointer< const Self >::operator>=(). |
|
Test if the pointer has been initialized Definition at line 79 of file itkSmartPointer.h. |
|
Test if the pointer has been initialized Definition at line 81 of file itkSmartPointer.h. |
|
Return pointer to object. Definition at line 75 of file itkSmartPointer.h. |
|
Definition at line 91 of file itkSmartPointer.h. |
|
Overload operator -> Definition at line 71 of file itkSmartPointer.h. |
|
Comparison of pointers. Less than comparison. Definition at line 99 of file itkSmartPointer.h. |
|
Comparison of pointers. Less than or equal to comparison. Definition at line 107 of file itkSmartPointer.h. |
|
Overload operator assignment. Definition at line 119 of file itkSmartPointer.h. |
|
Overload operator assignment. Definition at line 115 of file itkSmartPointer.h. |
|
Template comparison operators. Definition at line 87 of file itkSmartPointer.h. |
|
Comparison of pointers. Greater than comparison. Definition at line 103 of file itkSmartPointer.h. |
|
Comparison of pointers. Greater than or equal to comparison. Definition at line 111 of file itkSmartPointer.h. |
|
Function to print object pointed to Definition at line 133 of file itkSmartPointer.h. |