AutoDeleteChildCallback< T > Class Template Reference

Node callback that deletes direct children if an autoDelete() method returns true. More...

#include <AutoDeleteChildCallback.h>

List of all members.

Public Member Functions

 AutoDeleteChildCallback ()
 Initialized the callback by creating a temporary T node.
 AutoDeleteChildCallback (const T &reference)
 Initialized the callback by using data from an external T node.
virtual void operator() (osg::Node *node, osg::NodeVisitor *nv)

Protected Attributes

std::string libraryName
std::string className


Detailed Description

template<class T>
class AutoDeleteChildCallback< T >

Node callback that deletes direct children if an autoDelete() method returns true.

T is the type of the child to delete.

Author:
Sukender
Todo:
Use an allocator for non default constructible objects.

Definition at line 39 of file AutoDeleteChildCallback.h.


Constructor & Destructor Documentation

template<class T >
AutoDeleteChildCallback< T >::AutoDeleteChildCallback (  )  [inline]

Initialized the callback by creating a temporary T node.

Definition at line 55 of file AutoDeleteChildCallback.h.

References AutoDeleteChildCallback< T >::className, and AutoDeleteChildCallback< T >::libraryName.

template<class T >
AutoDeleteChildCallback< T >::AutoDeleteChildCallback ( const T &  reference  )  [inline]

Initialized the callback by using data from an external T node.

Definition at line 62 of file AutoDeleteChildCallback.h.


Member Function Documentation

template<class T >
void AutoDeleteChildCallback< T >::operator() ( osg::Node *  node,
osg::NodeVisitor *  nv 
) [inline, virtual]


Member Data Documentation

template<class T >
std::string AutoDeleteChildCallback< T >::className [protected]

template<class T >
std::string AutoDeleteChildCallback< T >::libraryName [protected]


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

Generated on Sun Jan 17 11:39:26 2010 for PVLE (Pro-Vocation Light Engine) by  doxygen 1.5.9