LightWrap++
AC++wrapperfortheLightWave3DSDK
lwpp::nGlobalBase< G, globalName > Class Template Reference

#include <global.h>

+ Inheritance diagram for lwpp::nGlobalBase< G, globalName >:
+ Collaboration diagram for lwpp::nGlobalBase< G, globalName >:

List of all members.

Public Member Functions

 nGlobalBase ()
 Constructor, acquire the global and increase the usage counter.
virtual ~nGlobalBase ()
 Destructor, RELEASE the global if usage counter drops to 0.
virtual bool available ()
 Check if the global is available.
virtual G * getGlobal ()
 Get the pointer to the global.
G * operator-> ()
 Get the pointer to the global.

Static Protected Attributes

static G * globPtr
 Pointer to the global functions.

Constructor & Destructor Documentation

template<typename G , const char * globalName>
lwpp::nGlobalBase< G, globalName >::nGlobalBase ( )
inlineexplicit

Constructor, acquire the global and increase the usage counter.

Todo:
throw exception if the global could not be aquired
template<typename G , const char * globalName>
virtual lwpp::nGlobalBase< G, globalName >::~nGlobalBase ( )
inlinevirtual

Destructor, RELEASE the global if usage counter drops to 0.


Member Function Documentation

template<typename G , const char * globalName>
virtual bool lwpp::nGlobalBase< G, globalName >::available ( )
inlinevirtual

Check if the global is available.

template<typename G , const char * globalName>
virtual G* lwpp::nGlobalBase< G, globalName >::getGlobal ( )
inlinevirtual

Get the pointer to the global.

template<typename G , const char * globalName>
G* lwpp::nGlobalBase< G, globalName >::operator-> ( )
inline

Get the pointer to the global.


Member Data Documentation

template<typename G , const char * globalName>
G* lwpp::nGlobalBase< G, globalName >::globPtr
staticprotected

Pointer to the global functions.


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