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

vpr::TSObjectProxy Class Template Reference

This is a smart pointer to a thread specific object. More...

#include <TSObjectProxy.h>

Inheritance diagram for vpr::TSObjectProxy:

Inheritance graph
[legend]
Collaboration diagram for vpr::TSObjectProxy:

Collaboration graph
[legend]
List of all members.

Public Methods

 TSObjectProxy ()
 Constructor for proxy. More...

 ~TSObjectProxy ()
 Destructor. More...

T * operator-> ()
T & operator * ()

Detailed Description

template<class T>
class vpr::TSObjectProxy< T >

This is a smart pointer to a thread specific object.

This allows users to have an object that has a seperate copy for each thread.

NOTE: The object used for type T must have a default constructor This class creates each instance of the real objects using this default constructor.

Uses TSObject<> internally to keep some type information

@usage vpr::TSObjectProxy<obj_type> var; (*var).method();

Definition at line 93 of file TSObjectProxy.h.


Constructor & Destructor Documentation

template<class T>
vpr::TSObjectProxy< T >::TSObjectProxy   [inline]
 

Constructor for proxy.

Definition at line 97 of file TSObjectProxy.h.

00097                    : mObjectKey(-1)
00098    {
00099       // Get a TS key for the object(s) that this will proxy
00100       mObjectKey = TSObjectProxyBase::generateNewTSKey();
00101    }

template<class T>
vpr::TSObjectProxy< T >::~TSObjectProxy   [inline]
 

Destructor.

This does nothing.

Definition at line 104 of file TSObjectProxy.h.

00105    {;}


Member Function Documentation

template<class T>
T* vpr::TSObjectProxy< T >::operator->   [inline]
 

Definition at line 107 of file TSObjectProxy.h.

00108    { return getSpecific(); }

template<class T>
T& vpr::TSObjectProxy< T >::operator *   [inline]
 

Definition at line 110 of file TSObjectProxy.h.

00111    { return *getSpecific();}


The documentation for this class was generated from the following file:
Generated on Sun May 2 14:47:14 2004 for VR Juggler Portable Runtime by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002