Geant4  10.03.p01
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
G4TypeKey Class Reference

#include <G4TypeKey.hh>

Inheritance diagram for G4TypeKey:

Public Types

typedef unsigned long Key
 

Public Member Functions

 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
 

Protected Member Functions

Key NextKey () const
 

Protected Attributes

Key fMyKey
 

Friends

std::ostream & operator<< (std::ostream &out, const G4TypeKey &key)
 

Detailed Description

Definition at line 38 of file G4TypeKey.hh.

Member Typedef Documentation

typedef unsigned long G4TypeKey::Key

Definition at line 42 of file G4TypeKey.hh.

Constructor & Destructor Documentation

G4TypeKey::G4TypeKey ( )
inline

Definition at line 45 of file G4TypeKey.hh.

45 :fMyKey(0) {}
Key fMyKey
Definition: G4TypeKey.hh:74
virtual G4TypeKey::~G4TypeKey ( )
inlinevirtual

Definition at line 48 of file G4TypeKey.hh.

48 {}

Member Function Documentation

G4bool G4TypeKey::IsValid ( )
inline

Definition at line 50 of file G4TypeKey.hh.

50  {
51  return (0 == fMyKey ? false : true);
52  }
Key fMyKey
Definition: G4TypeKey.hh:74

Here is the caller graph for this function:

Key G4TypeKey::NextKey ( ) const
inlineprotected

Definition at line 67 of file G4TypeKey.hh.

67  {
68  static G4ThreadLocal Key *npKey = 0 ;
69  if (!npKey) { npKey = new Key; *npKey = 0; }
70  Key &nKey = *npKey;
71  return ++nKey;
72  }
#define G4ThreadLocal
Definition: tls.hh:89
unsigned long Key
Definition: G4TypeKey.hh:42

Here is the caller graph for this function:

bool G4TypeKey::operator!= ( const G4TypeKey rhs) const
inline

Definition at line 57 of file G4TypeKey.hh.

57 {return !operator==(rhs);}
bool operator==(const G4TypeKey &rhs) const
Definition: G4TypeKey.hh:56

Here is the call graph for this function:

Key G4TypeKey::operator() ( ) const
inline

Definition at line 55 of file G4TypeKey.hh.

55 {return fMyKey;}
Key fMyKey
Definition: G4TypeKey.hh:74
bool G4TypeKey::operator< ( const G4TypeKey rhs) const
inline

Definition at line 58 of file G4TypeKey.hh.

58 {return fMyKey < rhs.fMyKey;}
Key fMyKey
Definition: G4TypeKey.hh:74
bool G4TypeKey::operator== ( const G4TypeKey rhs) const
inline

Definition at line 56 of file G4TypeKey.hh.

56 {return fMyKey == rhs.fMyKey;}
Key fMyKey
Definition: G4TypeKey.hh:74

Here is the caller graph for this function:

bool G4TypeKey::operator> ( const G4TypeKey rhs) const
inline

Definition at line 59 of file G4TypeKey.hh.

59 {return fMyKey > rhs.fMyKey;}
Key fMyKey
Definition: G4TypeKey.hh:74

Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  out,
const G4TypeKey key 
)
friend

Definition at line 61 of file G4TypeKey.hh.

61  {
62  return out<< key.fMyKey;
63  }
Key fMyKey
Definition: G4TypeKey.hh:74

Member Data Documentation

Key G4TypeKey::fMyKey
protected

Definition at line 74 of file G4TypeKey.hh.


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