osg::SimpleFunctorStore Class Reference

#include <OSGSimpleFunctorStore.h>

List of all members.

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


FunctorgetFunctor (void)

Private Attributes

Functor _func
bool _bHasFunctor


Detailed Description

Definition at line 51 of file OSGSimpleFunctorStore.h.


Member Typedef Documentation

Definition at line 59 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, and _func.

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


Member Data Documentation

Definition at line 100 of file OSGSimpleFunctorStore.h.

Referenced by getFunctor(), and regFunctor().

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 Mon Mar 17 12:21:46 2008 for OpenSG by  doxygen 1.5.5