Geant4 9.6.0
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
G4DimensionedTypeUtils::HasName Class Reference

Public Member Functions

 HasName (const G4String &name)
 
bool operator() (const G4UnitDefinition *value) const
 

Detailed Description

Definition at line 35 of file G4DimensionedTypeUtils.cc.

Constructor & Destructor Documentation

◆ HasName()

G4DimensionedTypeUtils::HasName::HasName ( const G4String name)
inline

Definition at line 37 of file G4DimensionedTypeUtils.cc.

37: fName(name) {};

Member Function Documentation

◆ operator()()

bool G4DimensionedTypeUtils::HasName::operator() ( const G4UnitDefinition value) const
inline

Definition at line 38 of file G4DimensionedTypeUtils.cc.

39 {
40 return ((value->GetName() == fName) || (value->GetSymbol() == fName));
41 }
const G4String & GetName() const
const G4String & GetSymbol() const

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