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.

00045 :fMyKey(0) {}

virtual G4TypeKey::~G4TypeKey (  )  [inline, virtual]

Definition at line 48 of file G4TypeKey.hh.

00048 {}


Member Function Documentation

G4bool G4TypeKey::IsValid (  )  [inline]

Definition at line 50 of file G4TypeKey.hh.

References fMyKey.

Referenced by G4AttFilterUtils::GetNewFilter().

00050                    {
00051     return (0 == fMyKey ? false : true);
00052   }

Key G4TypeKey::NextKey (  )  const [inline, protected]

Definition at line 67 of file G4TypeKey.hh.

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

00067                       {
00068     static Key nKey = 0;
00069     return ++nKey;
00070   }

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

Definition at line 57 of file G4TypeKey.hh.

References operator==().

00057 {return !operator==(rhs);}

Key G4TypeKey::operator() (  )  const [inline]

Definition at line 55 of file G4TypeKey.hh.

References fMyKey.

00055 {return fMyKey;}  

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

Definition at line 58 of file G4TypeKey.hh.

References fMyKey.

00058 {return fMyKey < rhs.fMyKey;}

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

Definition at line 56 of file G4TypeKey.hh.

References fMyKey.

Referenced by operator!=().

00056 {return fMyKey == rhs.fMyKey;}

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

Definition at line 59 of file G4TypeKey.hh.

References fMyKey.

00059 {return fMyKey > rhs.fMyKey;}


Friends And Related Function Documentation

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

Definition at line 61 of file G4TypeKey.hh.

00061                                                                       { 
00062     return out<< key.fMyKey;
00063   }


Field Documentation

Key G4TypeKey::fMyKey [protected]

Definition at line 72 of file G4TypeKey.hh.

Referenced by G4TypeKeyT< T >::G4TypeKeyT(), IsValid(), operator()(), operator<(), operator==(), and operator>().


The documentation for this class was generated from the following file:
Generated on Mon May 27 17:53:35 2013 for Geant4 by  doxygen 1.4.7