OSG  3.4.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Protected Attributes | List of all members
osgWidget::FunctionCallback< T > Class Template Reference

#include <EventInterface.h>

Inheritance diagram for osgWidget::FunctionCallback< T >:
Inheritance graph
[legend]
Collaboration diagram for osgWidget::FunctionCallback< T >:
Collaboration graph
[legend]

Public Member Functions

 FunctionCallback (T *callback)
 
virtual bool operator() (Event &ev)
 
- Public Member Functions inherited from osgWidget::CallbackInterface
virtual ~CallbackInterface ()
 
virtual const char * className () const
 
- Public Member Functions inherited from osg::Referenced
 Referenced ()
 
 Referenced (bool threadSafeRefUnref)
 
 Referenced (const Referenced &)
 
Referencedoperator= (const Referenced &)
 
virtual void setThreadSafeRefUnref (bool threadSafe)
 
bool getThreadSafeRefUnref () const
 
OpenThreads::MutexgetRefMutex () const
 
int ref () const
 
int unref () const
 
int unref_nodelete () const
 
int referenceCount () const
 
ObserverSetgetObserverSet () const
 
ObserverSetgetOrCreateObserverSet () const
 
void addObserver (Observer *observer) const
 
void removeObserver (Observer *observer) const
 

Protected Attributes

T * _callback
 
- Protected Attributes inherited from osg::Referenced
OpenThreads::AtomicPtr _observerSet
 
OpenThreads::Atomic _refCount
 

Additional Inherited Members

- Static Public Member Functions inherited from osg::Referenced
static OpenThreads::MutexgetGlobalReferencedMutex ()
 
static void setThreadSafeReferenceCounting (bool enableThreadSafeReferenceCounting)
 
static bool getThreadSafeReferenceCounting ()
 
static void setDeleteHandler (DeleteHandler *handler)
 
static DeleteHandlergetDeleteHandler ()
 
- Protected Member Functions inherited from osg::Referenced
virtual ~Referenced ()
 
void signalObserversAndDelete (bool signalDelete, bool doDelete) const
 
void deleteUsingDeleteHandler () const
 

Detailed Description

template<typename T>
class osgWidget::FunctionCallback< T >

Definition at line 191 of file EventInterface.h.

Constructor & Destructor Documentation

template<typename T >
osgWidget::FunctionCallback< T >::FunctionCallback ( T *  callback)
inline

Definition at line 194 of file EventInterface.h.

Member Function Documentation

template<typename T >
virtual bool osgWidget::FunctionCallback< T >::operator() ( Event ev)
inlinevirtual

Implements osgWidget::CallbackInterface.

Definition at line 198 of file EventInterface.h.

Member Data Documentation

template<typename T >
T* osgWidget::FunctionCallback< T >::_callback
protected

Definition at line 202 of file EventInterface.h.


The documentation for this class was generated from the following file: