Geant4 9.6.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 ()
 
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 114 of file G4UnitsTable.hh.

Constructor & Destructor Documentation

◆ G4UnitsCategory()

G4UnitsCategory::G4UnitsCategory ( const G4String name)
explicit

Definition at line 354 of file G4UnitsTable.cc.

355 : Name(name),UnitsList(),NameMxLen(0),SymbMxLen(0)
356{
357}

◆ ~G4UnitsCategory()

G4UnitsCategory::~G4UnitsCategory ( )

Definition at line 361 of file G4UnitsTable.cc.

362{
363 for(size_t i=0;i<UnitsList.size();i++)
364 {
365 delete UnitsList[i];
366 }
367 UnitsList.clear();
368}

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!=()

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

Definition at line 400 of file G4UnitsTable.cc.

401{
402 return (this != (G4UnitsCategory *) &right);
403}

◆ operator==()

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

Definition at line 393 of file G4UnitsTable.cc.

394{
395 return (this == (G4UnitsCategory *) &right);
396}

◆ PrintCategory()

void G4UnitsCategory::PrintCategory ( )

Definition at line 407 of file G4UnitsTable.cc.

408{
409 G4cout << "\n category: " << Name << G4endl;
410 for(size_t i=0;i<UnitsList.size();i++)
411 { UnitsList[i]->PrintDefinition(); }
412}
#define G4endl
Definition: G4ios.hh:52
G4DLLIMPORT 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: