#include <itkSmartPointer.h>
Inheritance diagram for itk::SmartPointer:
Public Types | |
typedef TObjectType | ObjectType |
Public Methods | |
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 & | operator= (const WeakPointer< ObjectType > &r) |
SmartPointer (const WeakPointer< ObjectType > &p) | |
~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; .\SmartPointerTest.exe linux: c++ SmartPointerTest.cxx ./a.out other: CCcompiler SmartPointerTest.cxx ./a.out
Definition at line 44 of file itkSmartPointer.h.
|
Definition at line 47 of file itkSmartPointer.h. |
|
Constructor Definition at line 50 of file itkSmartPointer.h. |
|
Copy constructor Definition at line 54 of file itkSmartPointer.h. |
|
Constructor to pointer p Definition at line 59 of file itkSmartPointer.h. |
|
Construct from a WeakPointer Definition at line 64 of file itkSmartPointer.h. |
|
Destructor Definition at line 72 of file itkSmartPointer.h. |
|
Access function to pointer. Definition at line 104 of file itkSmartPointer.h. |
|
Test if the pointer has been initialized Definition at line 88 of file itkSmartPointer.h. |
|
Test if the pointer has been initialized Definition at line 90 of file itkSmartPointer.h. |
|
Return pointer to object. Definition at line 84 of file itkSmartPointer.h. |
|
Definition at line 100 of file itkSmartPointer.h. |
|
Overload operator-> Definition at line 80 of file itkSmartPointer.h. |
|
Comparison of pointers. Less than comparison. Definition at line 108 of file itkSmartPointer.h. |
|
Comparison of pointers. Less than or equal to comparison. Definition at line 116 of file itkSmartPointer.h. |
|
Overload operator assignment. Definition at line 132 of file itkSmartPointer.h. |
|
Overload operator assignment. Definition at line 128 of file itkSmartPointer.h. |
|
Overload operator assignment. Definition at line 124 of file itkSmartPointer.h. |
|
Template comparison operators. Definition at line 96 of file itkSmartPointer.h. |
|
Comparison of pointers. Greater than comparison. Definition at line 112 of file itkSmartPointer.h. |
|
Comparison of pointers. Greater than or equal to comparison. Definition at line 120 of file itkSmartPointer.h. |
|
Function to print object pointed to Definition at line 146 of file itkSmartPointer.h. |