Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

vrj::GlContextData::ThreadContextData Struct Template Reference

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

#include <GlContextData.h>

List of all members.

Public Methods

 ThreadContextData ()
void checkSize (unsigned requiredSize)

Public Attributes

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


Detailed Description

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

Container for the thread specific context data.

Definition at line 129 of file GlContextData.h.


Constructor & Destructor Documentation

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

Definition at line 132 of file GlContextData.h.

References mContextDataVector.

00133          : mContextDataVector()
00134       {;}


Member Function Documentation

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

Definition at line 137 of file GlContextData.h.

References mContextDataVector.

00138       {
00139          if(requiredSize > mContextDataVector.size())
00140          {
00141             mContextDataVector.reserve(requiredSize);          // Resize smartly
00142             while(mContextDataVector.size() < requiredSize)    // Add any new items needed
00143             {  mContextDataVector.push_back(new DataType()); }
00144          }
00145       }


Member Data Documentation

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

Vector of user data.

Definition at line 147 of file GlContextData.h.

Referenced by checkSize, and ThreadContextData.


The documentation for this struct was generated from the following file:
Generated on Sun May 2 15:11:09 2004 for VR Juggler by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002