Main Page
Groups
Namespace List
Class Hierarchy
Alphabetical List
Compound List
File
List
Namespace Members
Compound Members
File Members
Concepts
Implements transparent reference counting in situations where forward references / cyclic include depndencies are a problem.
More...
#include <itkSmartPointerForwardReference.h>
Collaboration diagram for itk::SmartPointerForwardReference< T >:
[legend]List of all members.
Detailed Description
template<class T>
class itk::SmartPointerForwardReference< T >
Implements transparent reference counting in situations where forward references / cyclic include depndencies are a problem.
SmartPointerForwardReference 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.
This class is nearly identical to itkSmartPointer except that is used in situations where forward references or cyclic include dependencies become a problem. This class requires that the .h file is included in the .h file of the class using it, and the .txx file is included in the .cxx/.txx file of the class using it. (Make sure that SmartPointerForwardReference.txx is included last in the .cxx/.txx list of includes.)
Definition at line 48 of file itkSmartPointerForwardReference.h.
Constructor & Destructor Documentation
template<class T> |
itk::SmartPointerForwardReference< T >::SmartPointerForwardReference |
( |
|
) |
[inline] |
|
template<class T> |
itk::SmartPointerForwardReference< T >::SmartPointerForwardReference |
( |
const SmartPointerForwardReference< T > & |
p |
) |
|
|
template<class T> |
itk::SmartPointerForwardReference< T >::SmartPointerForwardReference |
( |
const WeakPointer< T > & |
p |
) |
|
|
template<class T> |
itk::SmartPointerForwardReference< T >::SmartPointerForwardReference |
( |
T * |
p |
) |
|
|
template<class T> |
itk::SmartPointerForwardReference< T >::~SmartPointerForwardReference |
( |
|
) |
|
|
Member Function Documentation
template<class T> |
T* itk::SmartPointerForwardReference< T >::GetPointer |
( |
|
) |
const |
|
|
Access function to pointer. |
template<class T> |
itk::SmartPointerForwardReference< T >::operator T * |
( |
|
) |
const |
|
|
Return pointer to object. |
template<class T> |
T* itk::SmartPointerForwardReference< T >::operator-> |
( |
|
) |
const |
|
template<class T> |
bool itk::SmartPointerForwardReference< T >::operator< |
( |
const SmartPointerForwardReference< T > & |
r |
) |
|
|
|
Comparison of pointers. Less than comparison. |
template<class T> |
bool itk::SmartPointerForwardReference< T >::operator<= |
( |
const SmartPointerForwardReference< T > & |
r |
) |
|
|
|
Comparison of pointers. Less than or equal to comparison. |
template<class T> |
SmartPointerForwardReference& itk::SmartPointerForwardReference< T >::operator= |
( |
T * |
r |
) |
|
|
|
Overload operator assignment. |
template<class T> |
SmartPointerForwardReference& itk::SmartPointerForwardReference< T >::operator= |
( |
const WeakPointer< T > & |
r |
) |
|
|
|
Overload operator assignment. |
template<class T> |
SmartPointerForwardReference& itk::SmartPointerForwardReference< T >::operator= |
( |
const SmartPointerForwardReference< T > & |
r |
) |
|
|
|
Overload operator assignment. |
template<class T> |
bool itk::SmartPointerForwardReference< T >::operator> |
( |
const SmartPointerForwardReference< T > & |
r |
) |
|
|
|
Comparison of pointers. Greater than comparison. |
template<class T> |
bool itk::SmartPointerForwardReference< T >::operator>= |
( |
const SmartPointerForwardReference< T > & |
r |
) |
|
|
|
Comparison of pointers. Greater than or equal to comparison. |
template<class T> |
T* itk::SmartPointerForwardReference< T >::Print |
( |
std::ostream & |
os |
) |
const |
|
The documentation for this class was generated from the following file:
Generated at Fri May 21 01:40:17 2004 for ITK by
1.2.15 written by Dimitri van Heesch,
© 1997-2000