Geant4  10.02.p02
G4AttCheck Class Reference

#include <G4AttCheck.hh>

Public Member Functions

 G4AttCheck (const std::vector< G4AttValue > *values, const std::map< G4String, G4AttDef > *definitions)
 
 ~G4AttCheck ()
 
const std::vector< G4AttValue > * GetAttValues () const
 
const std::map< G4String,
G4AttDef > * 
GetAttDefs () const
 
G4bool Check (const G4String &leader="") const
 
G4bool Standard (std::vector< G4AttValue > *standardValues, std::map< G4String, G4AttDef > *standardDefinitions) const
 

Private Member Functions

void AddValuesAndDefs (std::vector< G4AttValue > *newValues, std::map< G4String, G4AttDef > *newDefinitions, const G4String &oldName, const G4String &name, const G4String &value, const G4String &extra, const G4String &description="") const
 
void Init ()
 

Private Attributes

const std::vector< G4AttValue > * fpValues
 
const std::map< G4String,
G4AttDef > * 
fpDefinitions
 

Static Private Attributes

static G4ThreadLocal G4bool fFirst = true
 
static G4ThreadLocal std::set
< G4String > * 
fUnitCategories = 0
 
static G4ThreadLocal std::map
< G4String, G4String > * 
fStandardUnits = 0
 
static G4ThreadLocal std::set
< G4String > * 
fCategories = 0
 
static G4ThreadLocal std::set
< G4String > * 
fUnits = 0
 
static G4ThreadLocal std::set
< G4String > * 
fValueTypes = 0
 

Friends

std::ostream & operator<< (std::ostream &, const G4AttCheck &)
 

Detailed Description

Definition at line 57 of file G4AttCheck.hh.

Constructor & Destructor Documentation

G4AttCheck::G4AttCheck ( const std::vector< G4AttValue > *  values,
const std::map< G4String, G4AttDef > *  definitions 
)

Definition at line 52 of file G4AttCheck.cc.

References G4UnitDefinition::GetUnitsTable(), and lightions::Init().

+ Here is the call graph for this function:

G4AttCheck::~G4AttCheck ( )

Definition at line 110 of file G4AttCheck.cc.

Member Function Documentation

void G4AttCheck::AddValuesAndDefs ( std::vector< G4AttValue > *  newValues,
std::map< G4String, G4AttDef > *  newDefinitions,
const G4String oldName,
const G4String name,
const G4String value,
const G4String extra,
const G4String description = "" 
) const
private

Definition at line 332 of file G4AttCheck.cc.

References fpDefinitions, and name.

Referenced by Standard().

+ Here is the caller graph for this function:

G4bool G4AttCheck::Check ( const G4String leader = "") const

Definition at line 123 of file G4AttCheck.cc.

References error, fCategories, fpDefinitions, fpValues, fUnits, fValueTypes, G4cerr, G4endl, G4ThreadLocal, and print().

Referenced by G4XXXStoredSceneHandler::PreAddSolid().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

const std::map<G4String,G4AttDef>* G4AttCheck::GetAttDefs ( ) const
inline

Definition at line 71 of file G4AttCheck.hh.

References fpDefinitions.

const std::vector<G4AttValue>* G4AttCheck::GetAttValues ( ) const
inline

Definition at line 67 of file G4AttCheck.hh.

References fpValues.

void G4AttCheck::Init ( )
private

Definition at line 114 of file G4AttCheck.cc.

References fCategories, fStandardUnits, fUnitCategories, fUnits, and fValueTypes.

G4bool G4AttCheck::Standard ( std::vector< G4AttValue > *  standardValues,
std::map< G4String, G4AttDef > *  standardDefinitions 
) const

Definition at line 351 of file G4AttCheck.cc.

References AddValuesAndDefs(), G4UIcommand::ConvertTo3Vector(), G4UIcommand::ConvertToDimensioned3Vector(), G4UIcommand::ConvertToDimensionedDouble(), G4UIcommand::ConvertToString(), error, fCategories, fpDefinitions, fpValues, fUnitCategories, fUnits, fValueTypes, G4cerr, G4endl, G4UnitDefinition::GetCategory(), G4UnitDefinition::GetValueOf(), and G4String::strip().

Referenced by G4XXXStoredSceneHandler::PreAddSolid().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  os,
const G4AttCheck ac 
)
friend

Definition at line 249 of file G4AttCheck.cc.

Member Data Documentation

G4ThreadLocal std::set< G4String > * G4AttCheck::fCategories = 0
staticprivate

Definition at line 106 of file G4AttCheck.hh.

Referenced by Check(), Init(), operator<<(), and Standard().

G4ThreadLocal G4bool G4AttCheck::fFirst = true
staticprivate

Definition at line 103 of file G4AttCheck.hh.

const std::map<G4String,G4AttDef>* G4AttCheck::fpDefinitions
private

Definition at line 101 of file G4AttCheck.hh.

Referenced by AddValuesAndDefs(), Check(), GetAttDefs(), operator<<(), and Standard().

const std::vector<G4AttValue>* G4AttCheck::fpValues
private

Definition at line 100 of file G4AttCheck.hh.

Referenced by Check(), GetAttValues(), operator<<(), and Standard().

G4ThreadLocal std::map< G4String, G4String > * G4AttCheck::fStandardUnits = 0
staticprivate

Definition at line 105 of file G4AttCheck.hh.

Referenced by Init().

G4ThreadLocal std::set< G4String > * G4AttCheck::fUnitCategories = 0
staticprivate

Definition at line 104 of file G4AttCheck.hh.

Referenced by Init(), and Standard().

G4ThreadLocal std::set< G4String > * G4AttCheck::fUnits = 0
staticprivate

Definition at line 107 of file G4AttCheck.hh.

Referenced by Check(), Init(), operator<<(), and Standard().

G4ThreadLocal std::set< G4String > * G4AttCheck::fValueTypes = 0
staticprivate

Definition at line 108 of file G4AttCheck.hh.

Referenced by Check(), Init(), operator<<(), and Standard().


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