Geant4  10.03.p03
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
G4UnitsCategory Class Reference

#include <G4UnitsTable.hh>

Public Member Functions

 G4UnitsCategory (const G4String &name)
 
 ~G4UnitsCategory ()
 
G4int operator== (const G4UnitsCategory &) const
 
G4int operator!= (const G4UnitsCategory &) const
 
const G4StringGetName () const
 
G4UnitsContainerGetUnitsList ()
 
G4int GetNameMxLen () const
 
G4int GetSymbMxLen () const
 
void UpdateNameMxLen (G4int len)
 
void UpdateSymbMxLen (G4int len)
 
void PrintCategory ()
 

Detailed Description

Definition at line 139 of file G4UnitsTable.hh.

Constructor & Destructor Documentation

G4UnitsCategory::G4UnitsCategory ( const G4String name)
explicit

Definition at line 422 of file G4UnitsTable.cc.

423  : Name(name),UnitsList(),NameMxLen(0),SymbMxLen(0)
424 {
425 }
G4UnitsCategory::~G4UnitsCategory ( )

Definition at line 429 of file G4UnitsTable.cc.

430 {
431  for(size_t i=0;i<UnitsList.size();i++)
432  {
433  delete UnitsList[i];
434  }
435  UnitsList.clear();
436 }

Member Function Documentation

const G4String& G4UnitsCategory::GetName ( ) const
inline

Here is the caller graph for this function:

G4int G4UnitsCategory::GetNameMxLen ( ) const
inline

Here is the caller graph for this function:

G4int G4UnitsCategory::GetSymbMxLen ( ) const
inline

Here is the caller graph for this function:

G4UnitsContainer& G4UnitsCategory::GetUnitsList ( )
inline

Here is the caller graph for this function:

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

Definition at line 468 of file G4UnitsTable.cc.

469 {
470  return (this != (G4UnitsCategory *) &right);
471 }
G4int G4UnitsCategory::operator== ( const G4UnitsCategory right) const

Definition at line 461 of file G4UnitsTable.cc.

462 {
463  return (this == (G4UnitsCategory *) &right);
464 }
void G4UnitsCategory::PrintCategory ( )

Definition at line 475 of file G4UnitsTable.cc.

476 {
477  G4cout << "\n category: " << Name << G4endl;
478  for(size_t i=0;i<UnitsList.size();i++)
479  { UnitsList[i]->PrintDefinition(); }
480 }
G4GLOB_DLL std::ostream G4cout
#define G4endl
Definition: G4ios.hh:61

Here is the caller graph for this function:

void G4UnitsCategory::UpdateNameMxLen ( G4int  len)
inline

Here is the caller graph for this function:

void G4UnitsCategory::UpdateSymbMxLen ( G4int  len)
inline

Here is the caller graph for this function:


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