Geant4 9.6.0
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
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

◆ Key

typedef unsigned long G4TypeKey::Key

Definition at line 42 of file G4TypeKey.hh.

Constructor & Destructor Documentation

◆ G4TypeKey()

G4TypeKey::G4TypeKey ( )
inline

Definition at line 45 of file G4TypeKey.hh.

45:fMyKey(0) {}
Key fMyKey
Definition: G4TypeKey.hh:72

◆ ~G4TypeKey()

virtual G4TypeKey::~G4TypeKey ( )
inlinevirtual

Definition at line 48 of file G4TypeKey.hh.

48{}

Member Function Documentation

◆ IsValid()

G4bool G4TypeKey::IsValid ( )
inline

Definition at line 50 of file G4TypeKey.hh.

50 {
51 return (0 == fMyKey ? false : true);
52 }

Referenced by G4AttFilterUtils::GetNewFilter().

◆ NextKey()

Key G4TypeKey::NextKey ( ) const
inlineprotected

Definition at line 67 of file G4TypeKey.hh.

67 {
68 static Key nKey = 0;
69 return ++nKey;
70 }
unsigned long Key
Definition: G4TypeKey.hh:42

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

◆ operator!=()

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

◆ operator()()

Key G4TypeKey::operator() ( ) const
inline

Definition at line 55 of file G4TypeKey.hh.

55{return fMyKey;}

◆ operator<()

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

Definition at line 58 of file G4TypeKey.hh.

58{return fMyKey < rhs.fMyKey;}

◆ operator==()

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

Definition at line 56 of file G4TypeKey.hh.

56{return fMyKey == rhs.fMyKey;}

Referenced by operator!=().

◆ operator>()

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

Definition at line 59 of file G4TypeKey.hh.

59{return fMyKey > rhs.fMyKey;}

Friends And Related Function Documentation

◆ operator<<

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 }

Member Data Documentation

◆ fMyKey

Key G4TypeKey::fMyKey
protected

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