LightWrap++
AC++wrapperfortheLightWave3DSDK
lwpp::GlobalBase< G > Class Template Reference

Template class base for any kind of global that will be AQUIREd/RELEASEd,. More...

#include <global.h>

+ Inheritance diagram for lwpp::GlobalBase< G >:
+ Collaboration diagram for lwpp::GlobalBase< G >:

List of all members.

Public Member Functions

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

Protected Member Functions

bool _acquireGlobal ()

Static Protected Attributes

static G * globPtr
 Pointer to the global functions.

Detailed Description

template<class G>
class lwpp::GlobalBase< G >

Template class base for any kind of global that will be AQUIREd/RELEASEd,.


Constructor & Destructor Documentation

template<class G>
lwpp::GlobalBase< G >::GlobalBase ( )
inline

Constructor, acquire the global and increase the usage counter.

template<class G>
virtual lwpp::GlobalBase< G >::~GlobalBase ( )
inlinevirtual

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


Member Function Documentation

template<class G>
bool lwpp::GlobalBase< G >::_acquireGlobal ( )
inlineprotected
template<class G>
virtual bool lwpp::GlobalBase< G >::available ( ) const
inlinevirtual

Check if the global is available.

template<class G>
virtual G* lwpp::GlobalBase< G >::getGlobal ( )
inlinevirtual

Get the pointer to the global.

template<class G>
G* lwpp::GlobalBase< G >::operator-> ( )
inline

Get the pointer to the global.


Member Data Documentation

template<class G>
G* lwpp::GlobalBase< G >::globPtr
staticprotected

Pointer to the global functions.


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