#include <G4String.hh>
Definition at line 103 of file G4String.hh.
Public Types | |
| exact | |
| ignoreCase | |
| leading | |
| trailing | |
| both | |
| enum | caseCompare { exact, ignoreCase } |
| enum | stripType { leading, trailing, both } |
Public Member Functions | |
| G4String () | |
| G4String (char) | |
| G4String (const char *) | |
| G4String (const G4String &) | |
| G4String (const G4SubString &) | |
| G4String (const std::string &) | |
| ~G4String () | |
| G4String & | operator= (const G4String &) |
| G4String & | operator= (const std::string &) |
| G4String & | operator= (const char *) |
| char | operator() (str_size) const |
| char & | operator() (str_size) |
| G4String & | operator+= (const G4SubString &) |
| G4String & | operator+= (const char *) |
| G4String & | operator+= (const std::string &) |
| G4String & | operator+= (const char &) |
| G4bool | operator== (const G4String &) const |
| G4bool | operator== (const char *) const |
| G4bool | operator!= (const G4String &) const |
| G4bool | operator!= (const char *) const |
| operator const char * () const | |
| G4SubString | operator() (str_size, str_size) |
| G4int | compareTo (const char *, caseCompare mode=exact) |
| G4int | compareTo (const G4String &, caseCompare mode=exact) |
| G4String & | prepend (const char *) |
| G4String & | append (const G4String &) |
| std::istream & | readLine (std::istream &, G4bool skipWhite=true) |
| G4String & | replace (unsigned int, unsigned int, const char *, unsigned int) |
| G4String & | replace (str_size, str_size, const char *) |
| G4String & | remove (str_size) |
| G4String & | remove (str_size, str_size) |
| G4int | first (char) const |
| G4int | last (char) const |
| G4bool | contains (std::string) const |
| G4bool | contains (char) const |
| G4String | strip (G4int strip_Type=trailing, char c=' ') |
| void | toLower () |
| void | toUpper () |
| G4bool | isNull () const |
| str_size | index (const char *, G4int pos=0) const |
| str_size | index (char, G4int pos=0) const |
| str_size | index (const G4String &, str_size, str_size, caseCompare) const |
| const char * | data () const |
| G4int | strcasecompare (const char *, const char *) const |
| unsigned int | hash (caseCompare cmp=exact) const |
| unsigned int | stlhash () const |
Static Public Member Functions | |
| static unsigned int | hash (const G4String &) |
Private Types | |
| typedef std::string | std_string |
typedef std::string G4String::std_string [private] |
Definition at line 106 of file G4String.hh.
| enum G4String::stripType |
| G4String::G4String | ( | ) | [inline] |
| G4String::G4String | ( | char | ) | [inline] |
| G4String::G4String | ( | const char * | ) | [inline] |
| G4String::G4String | ( | const G4String & | ) | [inline] |
| G4String::G4String | ( | const G4SubString & | ) | [inline] |
| G4String::G4String | ( | const std::string & | ) | [inline] |
| G4String::~G4String | ( | ) | [inline] |
Definition at line 119 of file G4String.hh.
Referenced by G4UIcommandTree::AddNewCommand(), G4UIGAG::CodeGenTclTree(), G4UIcommand::DoIt(), G4VBasicShell::FindMatchingPath(), G4UIcommandTree::FindPath(), G4CloneDaughters(), G4CreateCloneVTE(), G4CreateCloneVTEWithDivision(), G4GDMLBase::GenerateName(), G4UIGainServer::GetCommand(), G4UIGAG::GetCommand(), G4UItcsh::GetCommandLine(), G4UIcsh::GetCommandLine(), G4UImanager::GetCurrentStringValue(), G4UIGainServer::GetFullPath(), G4UIGAG::GetFullPath(), G4VUIshell::MakePrompt(), G4UItcsh::MakePrompt(), G4UIcommandTree::RemoveCommand(), G4UIGainServer::SendAParamProperty(), G4UIGAG::SendAParamProperty(), and G4UIGAG::SendATclParamProperty().
| G4int G4String::compareTo | ( | const G4String & | , | |
| caseCompare | mode = exact | |||
| ) | [inline] |
| G4int G4String::compareTo | ( | const char * | , | |
| caseCompare | mode = exact | |||
| ) | [inline] |
Referenced by G4VisCommandsViewerSet::SetNewValue(), and G4VisCommandSceneHandlerCreate::SetNewValue().
| G4bool G4String::contains | ( | char | ) | const [inline] |
| G4bool G4String::contains | ( | std::string | ) | const [inline] |
Referenced by G3VolTableEntry::GetMasterClone().
| const char* G4String::data | ( | ) | const [inline] |
| G4int G4String::first | ( | char | ) | const [inline] |
Referenced by G4SDStructure::Activate(), G4UIcommandTree::AddNewCommand(), G4SDStructure::ExtractDirName(), G4VBasicShell::FindMatchingPath(), G4UIcommandTree::FindPath(), G4SDStructure::FindSensitiveDetector(), G3VolTableEntry::GetMasterClone(), G4AttDefStore::GetStoreKey(), G4AttValueFilterT< T, ConversionErrorPolicy >::GetValidElement(), operator<<(), G4XNNElasticLowE::Print(), and G4UIcommandTree::RemoveCommand().
| static unsigned int G4String::hash | ( | const G4String & | ) | [inline, static] |
| unsigned int G4String::hash | ( | caseCompare | cmp = exact |
) | const [inline] |
| str_size G4String::index | ( | const G4String & | , | |
| str_size | , | |||
| str_size | , | |||
| caseCompare | ||||
| ) | const [inline] |
Referenced by G4UImanager::ApplyCommand(), G4VBasicShell::Complete(), G4UIcommandTree::CreateFileName(), G4UIcommand::DoIt(), G4UIterminal::ExecuteCommand(), G4VBasicShell::FindCommand(), G4VBasicShell::FindDirectory(), G4UImanager::FindDirectory(), G4UIGainServer::FindDirPath(), G4UIGAG::FindDirPath(), G4VBasicShell::FindMatchingPath(), G4UIcommandTree::FindPath(), G4UIArrayString::G4UIArrayString(), G4VUIshell::GetAbsCommandDirPath(), G4DCtable::GetCollectionID(), G4HCtable::GetCollectionID(), G4VUIshell::ListCommand(), G4VBasicShell::ModifyToFullPathCommand(), G4RunManager::RestoreRandomNumberStatus(), G4UImanager::SetAlias(), G4UImanager::SolveAlias(), G4UIGainServer::TerminalHelp(), G4UIGAG::TerminalHelp(), and G4VBasicShell::TerminalHelp().
| G4bool G4String::isNull | ( | ) | const [inline] |
Referenced by G4SDStructure::Activate(), G4UIcommandTree::AddNewCommand(), G4SDStructure::AddNewDetector(), G4UImanager::ApplyCommand(), G4UIparameter::CheckNewValue(), G4UIcommand::CheckNewValue(), G4UIcommand::DoIt(), G4TrajectoryDrawByAttribute::Draw(), G4AttributeFilterT< T >::Evaluate(), G4VisCommandOpen::G4VisCommandOpen(), G4VisCommandSceneHandlerCreate::G4VisCommandSceneHandlerCreate(), G4UImanager::GetCurrentStringValue(), GetValues(), G4ParticleGunMessenger::IonCommand(), G4GeneralParticleSourceMessenger::IonCommand(), G4UIparameter::List(), G4UIcommand::List(), G4VBasicShell::ModifyToFullPathCommand(), G4VisListManager< T >::Print(), G4VisFilterManager< T >::Print(), G4UIcommandTree::RemoveCommand(), G4VisCommandModelCreate< Factory >::SetNewValue(), G4ProcessTableMessenger::SetNewValue(), G4PolarizationMessenger::SetNewValue(), G4VUserPhysicsList::SetPhysicsTableRetrieved(), G4UIGainServer::ShowCurrent(), G4UIGAG::ShowCurrent(), G4VBasicShell::ShowCurrent(), G4TextPPRetriever::SparseOption(), G4TextPPReporter::SparseOption(), G4HtmlPPReporter::SparseOption(), and G4VUserPhysicsList::StorePhysicsTable().
| G4int G4String::last | ( | char | ) | const [inline] |
| G4String::operator const char * | ( | ) | const [inline] |
| G4bool G4String::operator!= | ( | const char * | ) | const [inline] |
| G4SubString G4String::operator() | ( | str_size | , | |
| str_size | ||||
| ) | [inline] |
| char& G4String::operator() | ( | str_size | ) | [inline] |
| char G4String::operator() | ( | str_size | ) | const [inline] |
| G4String& G4String::operator+= | ( | const char & | ) | [inline] |
| G4String& G4String::operator+= | ( | const std::string & | ) | [inline] |
| G4String& G4String::operator+= | ( | const char * | ) | [inline] |
| G4String& G4String::operator+= | ( | const G4SubString & | ) | [inline] |
| G4String& G4String::operator= | ( | const char * | ) | [inline] |
| G4String& G4String::operator= | ( | const std::string & | ) | [inline] |
| G4bool G4String::operator== | ( | const char * | ) | const [inline] |
| G4String& G4String::prepend | ( | const char * | ) | [inline] |
| std::istream& G4String::readLine | ( | std::istream & | , | |
| G4bool | skipWhite = true | |||
| ) | [inline] |
Referenced by G3CLRead(), G4UIGainServer::GetCommand(), G4UIGAG::GetCommand(), and G4UIcsh::GetCommandLine().
Referenced by G4SDStructure::Activate(), G4UIcommandTree::AddNewCommand(), G4SDStructure::AddNewDetector(), G4UImanager::ApplyCommand(), G4UItcsh::CompleteCommand(), G4SDStructure::ExtractDirName(), G4VBasicShell::FindMatchingPath(), G4UIcommandTree::FindPath(), G4SDStructure::FindSensitiveDetector(), G4SDStructure::G4SDStructure(), G4VSensitiveDetector::G4VSensitiveDetector(), G4VUIshell::GetAbsCommandDirPath(), G4UIGainServer::GetCommand(), G4UIGAG::GetCommand(), G4UIterminal::GetCommand(), G4UItcsh::GetCommandLine(), G4UIcsh::GetCommandLine(), G4UItcsh::ListMatchedCommand(), and G4UIcommandTree::RemoveCommand().
| G4String& G4String::replace | ( | unsigned | int, | |
| unsigned | int, | |||
| const char * | , | |||
| unsigned | int | |||
| ) | [inline] |
Referenced by G4UIbatch::ReadCommand().
| unsigned int G4String::stlhash | ( | ) | const [inline] |
| G4int G4String::strcasecompare | ( | const char * | , | |
| const char * | ||||
| ) | const [inline] |
Referenced by G4VBasicShell::ApplyShellCommand(), G4UIGainServer::ChangeDirectory(), G4UIGAG::ChangeDirectory(), G4VBasicShell::ChangeDirectory(), G4VBasicShell::ChangeDirectoryCommand(), G4VBasicShell::Complete(), G4UItcsh::CompleteCommand(), G4ConversionUtils::Convert(), G4VBasicShell::FindCommand(), G4VBasicShell::FindDirectory(), G4UImanager::FindDirectory(), G4gsmate(), G4UIArrayString::G4UIArrayString(), G4UItcsh::G4UItcsh(), G4VisCommandOpen::G4VisCommandOpen(), G4VisCommandSceneHandlerCreate::G4VisCommandSceneHandlerCreate(), G4VViewer::G4VViewer(), G4UIGainServer::GetCommand(), G4UIGAG::GetCommand(), G4UIterminal::GetCommand(), G4UIcsh::GetCommandLine(), G4VUIshell::GetCommandTree(), G4UIGainServer::GetFullPath(), G4UIGAG::GetFullPath(), G4RIsotopeTable::GetMeanLifeTime(), GetValues(), G4VUIshell::ListCommand(), G4UIGainServer::ListDirectory(), G4UIGAG::ListDirectory(), G4VBasicShell::ListDirectory(), G4UItcsh::ListMatchedCommand(), G4RadioactiveDecay::LoadDecayTable(), G4VBasicShell::ModifyToFullPathCommand(), G4UIbatch::ReadCommand(), G4UImanager::RemoveAlias(), G4VViewer::SetName(), G4VisCommandViewerCreate::SetNewValue(), G4VisCommandViewerClone::SetNewValue(), G4AttCheck::Standard(), G4UIGainServer::TerminalHelp(), G4UIGAG::TerminalHelp(), G4VBasicShell::TerminalHelp(), and G4VisManager::ViewerShortName().
| void G4String::toLower | ( | ) | [inline] |
Referenced by G4Colour::AddToMap(), G4Colour::GetColour(), and G4VisFilterManager< T >::SetMode().
| void G4String::toUpper | ( | ) | [inline] |
Referenced by G4UIcommand::ConvertToBool(), G4UImessenger::StoB(), and G4UIparameter::TypeCheck().
1.4.7