Geant4  10.02.p02
G4BestUnit Class Reference

#include <G4UnitsTable.hh>

+ Collaboration diagram for G4BestUnit:

Public Member Functions

 G4BestUnit (G4double internalValue, const G4String &category)
 
 G4BestUnit (const G4ThreeVector &internalValue, const G4String &category)
 
 ~G4BestUnit ()
 
G4doubleGetValue ()
 
const G4StringGetCategory () const
 
size_t GetIndexOfCategory () const
 
 operator G4String () const
 

Private Attributes

G4double Value [3]
 
G4int nbOfVals
 
G4String Category
 
size_t IndexOfCategory
 

Friends

std::ostream & operator<< (std::ostream &, G4BestUnit VU)
 

Detailed Description

Definition at line 148 of file G4UnitsTable.hh.

Constructor & Destructor Documentation

G4BestUnit::G4BestUnit ( G4double  internalValue,
const G4String category 
)

Definition at line 428 of file G4UnitsTable.cc.

References FatalException, G4cout, G4endl, G4Exception(), G4UnitDefinition::GetUnitsTable(), IndexOfCategory, and Value.

+ Here is the call graph for this function:

G4BestUnit::G4BestUnit ( const G4ThreeVector internalValue,
const G4String category 
)

Definition at line 452 of file G4UnitsTable.cc.

References FatalException, G4cerr, G4endl, G4Exception(), G4UnitDefinition::GetUnitsTable(), IndexOfCategory, and Value.

+ Here is the call graph for this function:

G4BestUnit::~G4BestUnit ( )

Definition at line 475 of file G4UnitsTable.cc.

Member Function Documentation

const G4String& G4BestUnit::GetCategory ( ) const
inline

Referenced by export_G4UnitsTable().

+ Here is the caller graph for this function:

size_t G4BestUnit::GetIndexOfCategory ( ) const
inline

Referenced by export_G4UnitsTable().

+ Here is the caller graph for this function:

G4double* G4BestUnit::GetValue ( )
inline
G4BestUnit::operator G4String ( ) const

Definition at line 480 of file G4UnitsTable.cc.

Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  flux,
G4BestUnit  VU 
)
friend

Definition at line 489 of file G4UnitsTable.cc.

Member Data Documentation

G4String G4BestUnit::Category
private

Definition at line 176 of file G4UnitsTable.hh.

size_t G4BestUnit::IndexOfCategory
private

Definition at line 177 of file G4UnitsTable.hh.

Referenced by G4BestUnit(), and operator<<().

G4int G4BestUnit::nbOfVals
private

Definition at line 175 of file G4UnitsTable.hh.

Referenced by operator<<().

G4double G4BestUnit::Value[3]
private

Definition at line 174 of file G4UnitsTable.hh.

Referenced by G4BestUnit(), and operator<<().


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