#include <itkVisitorDispatcher.h>
Collaboration diagram for itk::fem::VisitorDispatcher< TVisitedClass, TVisitorBase, TVisitFunctionPointerType >:

Public Types | |
| typedef int | ClassIDType |
| typedef TVisitedClass | VisitedClass |
| typedef VisitedClass::ConstPointer | VisitedClassConstPointer |
| typedef VisitedClass::Pointer | VisitedClassPointer |
| typedef TVisitFunctionPointerType | VisitFunctionPointerType |
| typedef TVisitorBase | VisitorBase |
| typedef VisitorBase::Pointer | VisitorBasePointer |
| typedef VisitorsArrayType::value_type | VisitorsArray_value_type |
| typedef std::map< ClassIDType, VisitFunctionPointerType > | VisitorsArrayType |
Public Member Functions | |
| *Adds function visitor_function to the VisitorDispatcher class and *associates this function with the class TVisitorClass::This means *that when member function the fucntion *visitor_function will be if object pointed to by l *is of class TVisitorClass **To automatically register visitor on library you *would call this function immediatly after defining an *implementation function class **Visitor class must define a static member function int | CLID ()" that * returns the class ID and a virtual member int ClassID() that does * the same. * * bool Dummy |
| *Adds function visitor_function to the VisitorDispatcher class and *associates this function with the class TVisitorClass::This means *that when member function | Visit (e, l) is called |
| **param visitor_function Pointer to a visitor function **note Dummy class pointer must be passed as a first parameter to *automatically deduct the correct template parameter TVisitorClass *Technically we would like to call the this function as * | VisitorDispatcher (...) |
Static Public Member Functions | |
| template<class TVisitorClass> | |
| **param visitor_function Pointer to a visitor function **note Dummy class pointer must be passed as a first parameter to *automatically deduct the correct template parameter TVisitorClass *Technically we would like to call the this function as **but MS C compiler crashes if we do this This is a work around *You should pass null pointer casted to the TVisitorClass when *calling this function **sa Visit *static bool | RegisterVisitor (TVisitorClass *, VisitFunctionPointerType visitor_function) |
| static VisitFunctionPointerType | Visit (VisitorBasePointer l) |
Public Attributes | |
| *Adds function visitor_function to the VisitorDispatcher class and *associates this function with the class TVisitorClass::This means *that when member function the fucntion *visitor_function will be | called |
| *Adds function visitor_function to the VisitorDispatcher class and *associates this function with the class TVisitorClass::This means *that when member function the fucntion *visitor_function will be if object pointed to by l *is of class TVisitorClass **To automatically register visitor on library | initialization |
|
|||||
|
Type that holds class IDs. Definition at line 167 of file itkVisitorDispatcher.h. |
|
|||||
|
TVisitedClass is class to which visitor functions will be applied. Definition at line 142 of file itkVisitorDispatcher.h. |
|
|||||
|
Definition at line 154 of file itkVisitorDispatcher.h. |
|
|||||
|
Definition at line 153 of file itkVisitorDispatcher.h. |
|
|||||
|
Type that holds pointers to visit functions Definition at line 162 of file itkVisitorDispatcher.h. |
|
|||||
|
TVisitorBase is base class for visitor objects. Any class derived from TVisitorBase could in general be applied to TVisitedClass. Definition at line 148 of file itkVisitorDispatcher.h. |
|
|||||
|
Definition at line 155 of file itkVisitorDispatcher.h. |
|
|||||
|
Definition at line 177 of file itkVisitorDispatcher.h. |
|
|||||
|
Type that holds array of pairs of class ID and pointer to visit functions. FIXME: Maybe std::map is not the most efficient way of storing these pointers. Definition at line 176 of file itkVisitorDispatcher.h. |
|
||||||||||
|
|
|
|||||||||
|
|
|
||||||||||||||||||||
|
Definition at line 209 of file itkVisitorDispatcher.h. |
|
||||||||||
|
Returns the pointer to the correct implementation of the visit function. based on the class of object passed in l. Before this function can be called, the visitor functions must be added to the VisitorDispatcher class for visitor class that is derived from TVisitorBase.
Definition at line 309 of file itkVisitorDispatcher.h. |
|
||||||||||||||||
|
|
|
|||||
|
Definition at line 183 of file itkVisitorDispatcher.h. |
|
|||||
|
Definition at line 184 of file itkVisitorDispatcher.h. |
1.4.2 written by Dimitri van Heesch,
© 1997-2000