#include <OSGSimpleFunctorStore.h>
Public Types | |
Types | |
| typedef NewActionTypes::Functor | Functor |
Public Member Functions | |
Constructors | |
| SimpleFunctorStore (void) | |
Destructor | |
| ~SimpleFunctorStore (void) | |
Empty | |
| bool | empty (void) const |
Functor Registration | |
| void | regFunctor (const Functor &refFunc) |
| void | unregFunctor (void) |
Functor Access | |
| Functor * | getFunctor (void) |
Private Attributes | |
| Functor | _func |
| bool | _bHasFunctor |
Definition at line 51 of file OSGSimpleFunctorStore.h.
Definition at line 59 of file OSGSimpleFunctorStore.h.
| osg::SimpleFunctorStore::SimpleFunctorStore | ( | void | ) | [inline] |
Definition at line 45 of file OSGSimpleFunctorStore.inl.
00046 : _func ( ), 00047 _bHasFunctor(false) 00048 { 00049 }
| osg::SimpleFunctorStore::~SimpleFunctorStore | ( | void | ) | [inline] |
| bool osg::SimpleFunctorStore::empty | ( | void | ) | const [inline] |
Definition at line 63 of file OSGSimpleFunctorStore.inl.
References _bHasFunctor.
00064 { 00065 return _bHasFunctor; 00066 }
| void osg::SimpleFunctorStore::regFunctor | ( | const Functor & | refFunc | ) | [inline] |
Definition at line 72 of file OSGSimpleFunctorStore.inl.
References _bHasFunctor, and _func.
00073 { 00074 _func = refFunc; 00075 _bHasFunctor = true; 00076 }
| void osg::SimpleFunctorStore::unregFunctor | ( | void | ) | [inline] |
Definition at line 79 of file OSGSimpleFunctorStore.inl.
References _bHasFunctor.
00080 { 00081 _bHasFunctor = false; 00082 }
| SimpleFunctorStore::Functor * osg::SimpleFunctorStore::getFunctor | ( | void | ) | [inline] |
Definition at line 88 of file OSGSimpleFunctorStore.inl.
References _bHasFunctor, and _func.
00089 { 00090 Functor *pRetFunc = NULL; 00091 00092 if(_bHasFunctor) 00093 { 00094 pRetFunc = &_func; 00095 } 00096 00097 return pRetFunc; 00098 }
Functor osg::SimpleFunctorStore::_func [private] |
Definition at line 100 of file OSGSimpleFunctorStore.h.
Referenced by getFunctor(), and regFunctor().
bool osg::SimpleFunctorStore::_bHasFunctor [private] |
Definition at line 101 of file OSGSimpleFunctorStore.h.
Referenced by empty(), getFunctor(), regFunctor(), and unregFunctor().
1.5.5