ThreadStaticBase< T > Struct Template Reference

#include <ThreadStaticBase.hpp>

Inheritance diagram for ThreadStaticBase< T >:

Inheritance graph
[legend]
Collaboration diagram for ThreadStaticBase< T >:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 ThreadStaticBase ()
 ~ThreadStaticBase ()

Static Public Member Functions

static T & instance ()
static void create ()
static void destroy ()

Static Protected Attributes

static T * __pInstance


Detailed Description

template<typename T>
struct ThreadStaticBase< T >

Definition at line 111 of file ThreadStaticBase.hpp.


Constructor & Destructor Documentation

template<typename T>
ThreadStaticBase< T >::ThreadStaticBase (  )  [inline]

Constructor

Definition at line 118 of file ThreadStaticBase.hpp.

00119   {
00120     ;
00121   }

template<typename T>
ThreadStaticBase< T >::~ThreadStaticBase (  )  [inline]

Destructor

Definition at line 127 of file ThreadStaticBase.hpp.

00128   {
00129     ;
00130   }  


Member Function Documentation

static T & StaticBase< T >::instance (  )  [inline, static, inherited]

Access to auto instanciated static;

Returns:
*__pInstance

Definition at line 46 of file StaticBase.hpp.

00047   {
00048     return *__pInstance;
00049   }

static void StaticBase< T >::create (  )  [inline, static, inherited]

Creates __pInstance in Embedding class.

Definition at line 55 of file StaticBase.hpp.

00056   {
00057     __pInstance = new EmbeddingClass();
00058   }

static void StaticBase< T >::destroy (  )  [inline, static, inherited]

Destroyes __autoInstanciated in Embedding class.

Definition at line 64 of file StaticBase.hpp.

00065   {
00066     delete __pInstance;
00067   }


Member Data Documentation

T * StaticBase< T >::__pInstance [static, protected, inherited]

The static variable

Definition at line 37 of file StaticBase.hpp.


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

Generated on Wed Nov 19 00:16:25 2008 for FreeFEM3D (aka ff3d) by  doxygen 1.5.6