#include <itkWeakPointer.h>
Inheritance diagram for itk::WeakPointer:
Public Types | |
typedef TObjectType | ObjectType |
Public Methods | |
WeakPointer () | |
WeakPointer (const WeakPointer< ObjectType > &p) | |
WeakPointer (ObjectType *p) | |
~WeakPointer () | |
ObjectType * | operator-> () const |
operator ObjectType * () const | |
ObjectType * | GetPointer () const |
bool | operator< (const WeakPointer &r) |
bool | operator> (const WeakPointer &r) |
bool | operator<= (const WeakPointer &r) |
bool | operator>= (const WeakPointer &r) |
WeakPointer & | operator= (const WeakPointer &r) |
WeakPointer & | operator= (ObjectType *r) |
template<typename R> bool | operator== (R r) const |
template<typename R> bool | operator!= (R r) const |
ObjectType * | Print (std::ostream &os) const |
WeakPointer implements a weak reference to an object. A natural interface to the class is defined by operator->(and *) among others. WeakPointer is really nothing more than a standard pointer. It is used to call attention to the fact that it does not adjust the reference count of an object like SmartPointer does. WeakPointer is used internally to Insight to manage (break) reference counting loops. At some point, an object may keep track of how many objects hold weak references to itself. In all cases, however, an outstanding weak reference will not keep an object from destructing.
Definition at line 43 of file itkWeakPointer.h.
|
Extract information from template parameter. Definition at line 47 of file itkWeakPointer.h. |
|
Constructor. Definition at line 50 of file itkWeakPointer.h. |
|
Copy constructor. Definition at line 54 of file itkWeakPointer.h. |
|
Constructor to pointer p. Definition at line 58 of file itkWeakPointer.h. |
|
Destructor. Definition at line 62 of file itkWeakPointer.h. |
|
Access function to pointer. Definition at line 87 of file itkWeakPointer.h. Referenced by itk::SmartPointer< const ImageType >::SmartPointer(). |
|
Return pointer to object. Definition at line 70 of file itkWeakPointer.h. |
|
Template comparison operators. Definition at line 80 of file itkWeakPointer.h. |
|
Overload operator->. Definition at line 66 of file itkWeakPointer.h. |
|
Comparison of pointers. Less than comparison. Definition at line 91 of file itkWeakPointer.h. |
|
Comparison of pointers. Less than or equal to comparison. Definition at line 99 of file itkWeakPointer.h. |
|
Overload operator assignment. Definition at line 111 of file itkWeakPointer.h. |
|
Overload operator assignment. Definition at line 107 of file itkWeakPointer.h. |
|
Template comparison operators. Definition at line 75 of file itkWeakPointer.h. |
|
Comparison of pointers. Greater than comparison. Definition at line 95 of file itkWeakPointer.h. |
|
Comparison of pointers. Greater than or equal to comparison. Definition at line 103 of file itkWeakPointer.h. |
|
Function to print object pointed to. Definition at line 118 of file itkWeakPointer.h. |