vrj::GlContextData< ContextDataType >::ThreadContextData< DataType > Struct Template Reference

Container for the thread-specific context-specific data. More...

#include <GlContextData.h>

List of all members.

Public Member Functions

 ThreadContextData ()
void checkSize (unsigned requiredSize)

Public Attributes

std::vector< DataType * > mContextDataVector
 Vector of user data.


Detailed Description

template<class ContextDataType = int>
template<class DataType>
struct vrj::GlContextData< ContextDataType >::ThreadContextData< DataType >

Container for the thread-specific context-specific data.

Definition at line 148 of file GlContextData.h.


Constructor & Destructor Documentation

template<class ContextDataType = int>
template<class DataType>
vrj::GlContextData< ContextDataType >::ThreadContextData< DataType >::ThreadContextData (  )  [inline]

Definition at line 151 of file GlContextData.h.

00152          : mContextDataVector()
00153       {;}


Member Function Documentation

template<class ContextDataType = int>
template<class DataType>
void vrj::GlContextData< ContextDataType >::ThreadContextData< DataType >::checkSize ( unsigned  requiredSize  )  [inline]

Definition at line 156 of file GlContextData.h.

References vrj::GlContextData< ContextDataType >::ThreadContextData< DataType >::mContextDataVector.

00157       {
00158          if(requiredSize > mContextDataVector.size())
00159          {
00160             mContextDataVector.reserve(requiredSize);          // Resize smartly
00161             while(mContextDataVector.size() < requiredSize)    // Add any new items needed
00162             {
00163                mContextDataVector.push_back(new DataType());
00164             }
00165          }
00166       }


Member Data Documentation

template<class ContextDataType = int>
template<class DataType>
std::vector<DataType*> vrj::GlContextData< ContextDataType >::ThreadContextData< DataType >::mContextDataVector

Vector of user data.

Definition at line 168 of file GlContextData.h.

Referenced by vrj::GlContextData< ContextDataType >::ThreadContextData< DataType >::checkSize().


The documentation for this struct was generated from the following file:
Generated on Thu Jan 4 10:58:13 2007 for VR Juggler by  doxygen 1.5.1