Geant4  10.00.p03
G4UnitDefinition Class Reference

#include <G4UnitsTable.hh>

+ Collaboration diagram for G4UnitDefinition:

Public Member Functions

 G4UnitDefinition (const G4String &name, const G4String &symbol, const G4String &category, G4double value)
 
 ~G4UnitDefinition ()
 
G4int operator== (const G4UnitDefinition &) const
 
G4int operator!= (const G4UnitDefinition &) const
 
const G4StringGetName () const
 
const G4StringGetSymbol () const
 
G4double GetValue () const
 
void PrintDefinition ()
 

Static Public Member Functions

static void BuildUnitsTable ()
 
static void PrintUnitsTable ()
 
static void ClearUnitsTable ()
 
static G4UnitsTableGetUnitsTable ()
 
static G4double GetValueOf (const G4String &)
 
static G4String GetCategory (const G4String &)
 

Private Member Functions

 G4UnitDefinition (const G4UnitDefinition &)
 
G4UnitDefinitionoperator= (const G4UnitDefinition &)
 

Private Attributes

G4String Name
 
G4String SymbolName
 
G4double Value
 
size_t CategoryIndex
 

Static Private Attributes

static G4ThreadLocal G4UnitsTablepUnitsTable = 0
 

Detailed Description

Definition at line 64 of file G4UnitsTable.hh.

Constructor & Destructor Documentation

G4UnitDefinition::G4UnitDefinition ( const G4String name,
const G4String symbol,
const G4String category,
G4double  value 
)

Definition at line 59 of file G4UnitsTable.cc.

References CategoryIndex, GetName(), and pUnitsTable.

Referenced by BuildUnitsTable().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

G4UnitDefinition::~G4UnitDefinition ( )

Definition at line 87 of file G4UnitsTable.cc.

References pUnitsTable.

G4UnitDefinition::G4UnitDefinition ( const G4UnitDefinition right)
private

Definition at line 94 of file G4UnitsTable.cc.

References right.

Member Function Documentation

void G4UnitDefinition::BuildUnitsTable ( )
static

Definition at line 193 of file G4UnitsTable.cc.

References ampere, angstrom, atmosphere, bar, barn, becquerel, centimeter, centimeter2, centimeter3, cm, cm2, cm3, coulomb, curie, degree, electronvolt, eplus, eV, fermi, g, G4UnitDefinition(), gauss, GeV, gigaelectronvolt, gram, gray, hertz, joule, kelvin, keV, kg, kiloelectronvolt, kilogauss, kilogram, kilohertz, kilometer, kilometer2, kilometer3, kilovolt, m, m3, megaelectronvolt, megahertz, megavolt, meter, meter2, meter3, MeV, mg, microampere, microbarn, micrometer, microsecond, milliampere, millibarn, milligram, millimeter, millimeter2, millimeter3, milliradian, millisecond, mole, nanoampere, nanobarn, nanometer, nanosecond, newton, parsec, pascal, petaelectronvolt, picobarn, picosecond, radian, second, steradian, teraelectronvolt, tesla, volt, watt, and weber.

Referenced by export_G4UnitsTable(), G4GDMLRead::G4GDMLRead(), GetUnitsTable(), G4DimensionedTypeUtils::GetUnitValue(), and main().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void G4UnitDefinition::ClearUnitsTable ( )
static

Definition at line 348 of file G4UnitsTable.cc.

References pUnitsTable.

Referenced by G4RunManagerKernel::~G4RunManagerKernel().

+ Here is the caller graph for this function:

G4String G4UnitDefinition::GetCategory ( const G4String str)
static

Definition at line 160 of file G4UnitsTable.cc.

References G4Exception(), GetUnitsTable(), JustWarning, name, pUnitsTable, and symbol.

Referenced by G4UIcommand::CategoryOf(), G4VPrimitiveScorer::CheckAndSetUnit(), export_G4UnitsTable(), and G4AttCheck::Standard().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

const G4String& G4UnitDefinition::GetName ( ) const
inline

Referenced by export_G4UnitsTable(), G4UnitDefinition(), and G4DimensionedTypeUtils::HasName::operator()().

+ Here is the caller graph for this function:

const G4String& G4UnitDefinition::GetSymbol ( ) const
inline

Referenced by export_G4UnitsTable(), and G4DimensionedTypeUtils::HasName::operator()().

+ Here is the caller graph for this function:

G4UnitsTable & G4UnitDefinition::GetUnitsTable ( )
static

Definition at line 129 of file G4UnitsTable.cc.

References BuildUnitsTable(), and pUnitsTable.

Referenced by export_G4UnitsTable(), G4AttCheck::G4AttCheck(), G4BestUnit::G4BestUnit(), GetCategory(), G4DimensionedTypeUtils::GetUnitValue(), GetValueOf(), operator<<(), and G4UIcommand::UnitsList().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

G4double G4UnitDefinition::GetValue ( ) const
inline

Referenced by export_G4UnitsTable().

+ Here is the caller graph for this function:

G4double G4UnitDefinition::GetValueOf ( const G4String str)
static

Definition at line 138 of file G4UnitsTable.cc.

References G4Exception(), GetUnitsTable(), JustWarning, name, and symbol.

Referenced by G4VPrimitiveScorer::CheckAndSetUnit(), export_G4UnitsTable(), G4ScoreQuantityMessenger::FParticleWithEnergyCommand(), G4tgrUtils::GetDouble(), G4Analysis::GetUnitValue(), HistoManager::SetHisto(), G4VisCommandsViewerSet::SetNewValue(), G4ScoreQuantityMessenger::SetNewValue(), RMC01AnalysisManagerMessenger::SetNewValue(), G4AdjointSimMessenger::SetNewValue(), G4AttCheck::Standard(), and G4UIcommand::ValueOf().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

G4int G4UnitDefinition::operator!= ( const G4UnitDefinition right) const

Definition at line 122 of file G4UnitsTable.cc.

G4UnitDefinition & G4UnitDefinition::operator= ( const G4UnitDefinition right)
private

Definition at line 101 of file G4UnitsTable.cc.

References CategoryIndex, Name, SymbolName, and Value.

G4int G4UnitDefinition::operator== ( const G4UnitDefinition right) const

Definition at line 115 of file G4UnitsTable.cc.

void G4UnitDefinition::PrintDefinition ( )

Definition at line 183 of file G4UnitsTable.cc.

References CategoryIndex, G4cout, G4endl, Name, SymbolName, and Value.

Referenced by export_G4UnitsTable().

+ Here is the caller graph for this function:

void G4UnitDefinition::PrintUnitsTable ( )
static

Definition at line 336 of file G4UnitsTable.cc.

References G4cout, and pUnitsTable.

Referenced by export_G4UnitsTable(), and G4UnitsMessenger::SetNewValue().

+ Here is the caller graph for this function:

Member Data Documentation

size_t G4UnitDefinition::CategoryIndex
private

Definition at line 107 of file G4UnitsTable.hh.

Referenced by G4UnitDefinition(), operator=(), and PrintDefinition().

G4String G4UnitDefinition::Name
private

Definition at line 101 of file G4UnitsTable.hh.

Referenced by operator=(), and PrintDefinition().

G4ThreadLocal G4UnitsTable * G4UnitDefinition::pUnitsTable = 0
staticprivate
G4String G4UnitDefinition::SymbolName
private

Definition at line 102 of file G4UnitsTable.hh.

Referenced by operator=(), and PrintDefinition().

G4double G4UnitDefinition::Value
private

Definition at line 103 of file G4UnitsTable.hh.

Referenced by operator=(), and PrintDefinition().


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