Geant4  10.00.p02
G4Cache< VALTYPE > Class Template Reference

#include <G4Cache.hh>

+ Inheritance diagram for G4Cache< VALTYPE >:
+ Collaboration diagram for G4Cache< VALTYPE >:

Public Types

typedef VALTYPE value_type
 

Public Member Functions

 G4Cache ()
 
 G4Cache (const value_type &v)
 
virtual ~G4Cache ()
 
value_typeGet () const
 
void Put (const value_type &val) const
 
value_type Pop ()
 

Protected Member Functions

const int & GetId () const
 

Private Member Functions

value_typeGetCache () const
 
 G4Cache (const G4Cache &rhs)
 
G4Cacheoperator= (const G4Cache &rhs)
 

Private Attributes

int id
 
G4CacheReference< value_typetheCache
 

Static Private Attributes

static G4Mutex gMutex = G4MUTEX_INITIALIZER
 
static unsigned int instancesctr = 0
 
static unsigned int dstrctr = 0
 

Detailed Description

template<class VALTYPE>
class G4Cache< VALTYPE >

Definition at line 85 of file G4Cache.hh.

Member Typedef Documentation

template<class VALTYPE>
typedef VALTYPE G4Cache< VALTYPE >::value_type

Definition at line 87 of file G4Cache.hh.

Constructor & Destructor Documentation

template<class V >
G4Cache< V >::G4Cache ( )

Definition at line 216 of file G4Cache.hh.

template<class VALTYPE>
G4Cache< VALTYPE >::G4Cache ( const value_type v)
template<class V >
G4Cache< V >::~G4Cache ( )
virtual

Definition at line 237 of file G4Cache.hh.

template<class VALTYPE>
G4Cache< VALTYPE >::G4Cache ( const G4Cache< VALTYPE > &  rhs)
private

Member Function Documentation

template<class VALTYPE>
value_type& G4Cache< VALTYPE >::GetCache ( ) const
inlineprivate

Definition at line 117 of file G4Cache.hh.

template<class VALTYPE>
const int& G4Cache< VALTYPE >::GetId ( ) const
inlineprotected

Definition at line 109 of file G4Cache.hh.

Referenced by G4MapCache< KEYTYPE, VALTYPE >::~G4MapCache().

+ Here is the caller graph for this function:

template<class VALTYPE>
G4Cache& G4Cache< VALTYPE >::operator= ( const G4Cache< VALTYPE > &  rhs)
private
template<class V >
V G4Cache< V >::Pop ( )
inline

Definition at line 262 of file G4Cache.hh.

Member Data Documentation

template<class VALTYPE>
unsigned int G4Cache< V >::dstrctr = 0
staticprivate

Definition at line 115 of file G4Cache.hh.

template<class VALTYPE>
G4Mutex G4Cache< V >::gMutex = G4MUTEX_INITIALIZER
staticprivate

Definition at line 113 of file G4Cache.hh.

template<class VALTYPE>
int G4Cache< VALTYPE >::id
private

Definition at line 111 of file G4Cache.hh.

Referenced by G4Cache< F02ElectricFieldSetup * >::GetId().

template<class VALTYPE>
unsigned int G4Cache< V >::instancesctr = 0
staticprivate

Definition at line 114 of file G4Cache.hh.

template<class VALTYPE>
G4CacheReference<value_type> G4Cache< VALTYPE >::theCache
mutableprivate

Definition at line 112 of file G4Cache.hh.


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