Geant4 11.2.2
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 460 of file G4UnitsTable.cc.

461 : Name(name)
462{}

◆ ~G4UnitsCategory()

G4UnitsCategory::~G4UnitsCategory ( )

Definition at line 466 of file G4UnitsTable.cc.

467{
468 for(auto& i : UnitsList)
469 {
470 delete i;
471 }
472 UnitsList.clear();
473}

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 505 of file G4UnitsTable.cc.

506{
507 return (this != (G4UnitsCategory*) &right);
508}

◆ operator==()

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

Definition at line 498 of file G4UnitsTable.cc.

499{
500 return (this == (G4UnitsCategory*) &right);
501}

◆ PrintCategory()

void G4UnitsCategory::PrintCategory ( )

Definition at line 512 of file G4UnitsTable.cc.

513{
514 G4cout << "\n category: " << Name << G4endl;
515 for(auto& i : UnitsList)
516 {
517 i->PrintDefinition();
518 }
519}
#define G4endl
Definition G4ios.hh:67
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: