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

osg::SimpleFunctorStore Class Reference

#include <OSGSimpleFunctorStore.h>

List of all members.

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
*FunctorgetFunctor (void)

Public Attributes

Types
*typedef NewActionTypes::Functor Functor

Private Attributes

Functor _func
bool _bHasFunctor


Detailed Description

Definition at line 51 of file OSGSimpleFunctorStore.h.


Constructor & Destructor Documentation

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]
 

Definition at line 55 of file OSGSimpleFunctorStore.inl.

00056 {
00057 }


Member Function Documentation

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, _func, and Functor.

00089 {
00090     Functor *pRetFunc = NULL;
00091 
00092     if(_bHasFunctor)
00093     {
00094         pRetFunc =  &_func;
00095     }
00096  
00097     return pRetFunc;
00098 }


Member Data Documentation

* typedef NewActionTypes::Functor osg::SimpleFunctorStore::Functor
 

Definition at line 59 of file OSGSimpleFunctorStore.h.

Referenced by getFunctor().

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().


The documentation for this class was generated from the following files:
Generated on Thu Aug 25 04:28:19 2005 for OpenSG by  doxygen 1.4.3