#include <itkFEMP.h>
Public Member Functions | |
FEMP (typename T::Pointer x) | |
FEMP () | |
bool | IsNULL () const |
operator T * () const | |
T::Pointer | operator-> () const |
~FEMP () | |
FEMP (const FEMP &x) | |
const FEMP & | operator= (const FEMP &rhs) |
FEMP holds a pointer to objects of class T and its derived classes. it behaves like a special kind of pointer. Special pointers to object can be used to store polymorphic arrays in STL. The basic idea of the special pointer is: whatever you do to the pointer (object of class FEMP), is also reflected on the object within (pointed to by m_Data member). For example: if you copy the special pointer, an object within is also copied.
Class T should have a member Clone() which produces a copy of an object. This is important in polymorphic classes, where object of the derived class should be created when copying an existing object.
Class T should also include typedefs T::Pointer and T::ConstPointer that define standard pointers to the class. Note that these could be SmartPointer classes.
Definition at line 43 of file itkFEMP.h.
itk::fem::FEMP< T >::FEMP | ( | ) | [inline] |
itk::fem::FEMP< T >::FEMP | ( | const FEMP< T > & | x | ) | [inline] |
Copy constructor. Clone() method is called to duplicate the existing object.
Definition at line 60 of file itkFEMP.h.
References itk::fem::FEMP< T >::m_Data.
itk::fem::FEMP< T >::FEMP | ( | typename T::Pointer | x | ) | [inline, explicit] |
Conversion constructor from T::Pointer to FEMP<T>. The object T* must exist and we take ownership of object T*. If you want to create a copy of object and take ownership of that, use: FEMP(x->Clone()) instead of FEMP(x).
itk::fem::FEMP< T >::~FEMP | ( | ) | [inline] |
bool itk::fem::FEMP< T >::IsNULL | ( | ) | const [inline] |
itk::fem::FEMP< T >::operator T * | ( | ) | const [inline] |
T::Pointer itk::fem::FEMP< T >::operator-> | ( | ) | const [inline] |
const FEMP< T > & itk::fem::FEMP< T >::operator= | ( | const FEMP< T > & | rhs | ) | [inline] |
Asignment operator
Self assignments don't make sense.
First destroy the existing object on the left hand side
Then clone the one on the right hand side of the expression (if not NULL).
Definition at line 130 of file itkFEMP.h.
References itk::fem::FEMP< T >::m_Data.