Geant4 10.7.0
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
G4UnitsCategory Class Reference

#include <G4UnitsTable.hh>

Public Member Functions

 G4UnitsCategory (const G4String &name)
 
 ~G4UnitsCategory ()
 
G4bool operator== (const G4UnitsCategory &) const
 
G4bool 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 129 of file G4UnitsTable.hh.

Constructor & Destructor Documentation

◆ G4UnitsCategory()

G4UnitsCategory::G4UnitsCategory ( const G4String name)
explicit

Definition at line 446 of file G4UnitsTable.cc.

447 : Name(name)
448 , UnitsList()
449{}

◆ ~G4UnitsCategory()

G4UnitsCategory::~G4UnitsCategory ( )

Definition at line 453 of file G4UnitsTable.cc.

454{
455 for(std::size_t i = 0; i < UnitsList.size(); ++i)
456 {
457 delete UnitsList[i];
458 }
459 UnitsList.clear();
460}

Member Function Documentation

◆ GetName()

const G4String & G4UnitsCategory::GetName ( ) const
inline

◆ GetNameMxLen()

G4int G4UnitsCategory::GetNameMxLen ( ) const
inline

◆ GetSymbMxLen()

G4int G4UnitsCategory::GetSymbMxLen ( ) const
inline

◆ GetUnitsList()

G4UnitsContainer & G4UnitsCategory::GetUnitsList ( )
inline

◆ operator!=()

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

Definition at line 492 of file G4UnitsTable.cc.

493{
494 return (this != (G4UnitsCategory*) &right);
495}

◆ operator==()

G4bool G4UnitsCategory::operator== ( const G4UnitsCategory right) const

Definition at line 485 of file G4UnitsTable.cc.

486{
487 return (this == (G4UnitsCategory*) &right);
488}

◆ PrintCategory()

void G4UnitsCategory::PrintCategory ( )

Definition at line 499 of file G4UnitsTable.cc.

500{
501 G4cout << "\n category: " << Name << G4endl;
502 for(std::size_t i = 0; i < UnitsList.size(); ++i)
503 {
504 UnitsList[i]->PrintDefinition();
505 }
506}
#define G4endl
Definition: G4ios.hh:57
G4GLOB_DLL std::ostream G4cout

◆ UpdateNameMxLen()

void G4UnitsCategory::UpdateNameMxLen ( G4int  len)
inline

◆ UpdateSymbMxLen()

void G4UnitsCategory::UpdateSymbMxLen ( G4int  len)
inline

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