Main Page | Modules | Namespace List | Class Hierarchy | Compound List | File List | Namespace Members | Compound Members | File Members | Related Pages

EnterFunction.h

Go to the documentation of this file.
00001 #ifndef X3DTK_ENTERFUNCTION_H
00002 #define X3DTK_ENTERFUNCTION_H
00003 
00004 #include "X3DFunction.h"
00005 #include "X3DTypes.h"
00006 
00007 namespace X3DTK {
00008 
00009 class X3DComponentVisitor;
00010 
00012 typedef void (X3DComponentVisitor::* ptrToEnterFunction)(SFAbstractNode) const;
00013 
00019 class EnterFunction : public X3DFunction
00020 {
00021 public:
00023   EnterFunction(const ptrToEnterFunction enter, const X3DComponentVisitor *component);
00025   ~EnterFunction();
00026   
00028   inline void enter(SFAbstractNode N) const {(component_->*ptr2enter_)(N);};
00029   
00030 private:
00031   const ptrToEnterFunction ptr2enter_;
00032   const X3DComponentVisitor *component_;
00033 };
00034 
00035 }
00036 
00037 #endif

Generated on Tue Mar 2 14:08:49 2004 for X3DToolKit by doxygen 1.3.3