Geant4.10
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions
G4TypeKeyT< T > Class Template Reference

#include <G4TypeKeyT.hh>

Inheritance diagram for G4TypeKeyT< T >:
G4TypeKey

Public Member Functions

 G4TypeKeyT ()
 
virtual ~G4TypeKeyT ()
 
- Public Member Functions inherited from G4TypeKey
 G4TypeKey ()
 
virtual ~G4TypeKey ()
 
G4bool IsValid ()
 
Key operator() () const
 
bool operator== (const G4TypeKey &rhs) const
 
bool operator!= (const G4TypeKey &rhs) const
 
bool operator< (const G4TypeKey &rhs) const
 
bool operator> (const G4TypeKey &rhs) const
 

Additional Inherited Members

- Public Types inherited from G4TypeKey
typedef unsigned long Key
 
- Protected Member Functions inherited from G4TypeKey
Key NextKey () const
 
- Protected Attributes inherited from G4TypeKey
Key fMyKey
 

Detailed Description

template<typename T>
class G4TypeKeyT< T >

Definition at line 38 of file G4TypeKeyT.hh.

Constructor & Destructor Documentation

template<typename T>
G4TypeKeyT< T >::G4TypeKeyT ( )
inline

Definition at line 42 of file G4TypeKeyT.hh.

References G4TypeKey::fMyKey, G4ThreadLocal, and G4TypeKey::NextKey().

42  {
43  static G4ThreadLocal Key *pkey = 0 ;
44  if (!pkey) { pkey = new Key; *pkey = NextKey(); }
45  Key &key = *pkey;
46  fMyKey = key;
47  }
#define G4ThreadLocal
Definition: tls.hh:52
Key NextKey() const
Definition: G4TypeKey.hh:67
unsigned long Key
Definition: G4TypeKey.hh:42
Key fMyKey
Definition: G4TypeKey.hh:74
template<typename T>
virtual G4TypeKeyT< T >::~G4TypeKeyT ( )
inlinevirtual

Definition at line 49 of file G4TypeKeyT.hh.

49 {}

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