Geant4.10
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Types | Public Member Functions | Protected Member Functions | Protected Attributes | Friends
G4TypeKey Class Reference

#include <G4TypeKey.hh>

Inheritance diagram for G4TypeKey:
G4TypeKeyT< T >

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 ( void  )
inline

Definition at line 50 of file G4TypeKey.hh.

References fMyKey.

Referenced by G4AttFilterUtils::GetNewFilter().

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

Definition at line 67 of file G4TypeKey.hh.

References G4ThreadLocal.

Referenced by G4TypeKeyT< T >::G4TypeKeyT().

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:52
unsigned long Key
Definition: G4TypeKey.hh:42
bool G4TypeKey::operator!= ( const G4TypeKey rhs) const
inline

Definition at line 57 of file G4TypeKey.hh.

References operator==().

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

Definition at line 55 of file G4TypeKey.hh.

References fMyKey.

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.

References fMyKey.

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.

References fMyKey.

Referenced by operator!=().

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

Definition at line 59 of file G4TypeKey.hh.

References fMyKey.

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

Field Documentation

Key G4TypeKey::fMyKey
protected

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