ECCE @ EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
G4String Class Reference

#include <geant4/tree/geant4-10.6-release/examples/extended/parallel/TopC/ParN02/AnnotatedFiles/G4String.hh>

+ Inheritance diagram for G4String:
+ Collaboration diagram for G4String:

Public Types

enum  caseCompare { exact, ignoreCase }
 
enum  stripType { leading, trailing, both }
 

Public Member Functions

 G4String ()
 
 G4String (char)
 
 G4String (const char *)
 
 G4String (const char *, str_size)
 
 G4String (const G4String &)
 
 G4String (const std::string &)
 
 G4String (G4String &&)=default
 
 ~G4String ()
 
G4Stringoperator= (const G4String &)
 
G4Stringoperator= (const std::string &)
 
G4Stringoperator= (const char *)
 
G4Stringoperator= (G4String &&)=default
 
char operator() (str_size) const
 
char & operator() (str_size)
 
G4Stringoperator+= (const char *)
 
G4Stringoperator+= (const std::string &)
 
G4Stringoperator+= (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
 
G4String operator() (str_size, str_size)
 
G4int compareTo (const char *, caseCompare mode=exact) const
 
G4int compareTo (const G4String &, caseCompare mode=exact) const
 
G4Stringprepend (const char *)
 
G4Stringappend (const G4String &)
 
std::istream & readLine (std::istream &, G4bool skipWhite=true)
 
G4Stringreplace (unsigned int, unsigned int, const char *, unsigned int)
 
G4Stringreplace (str_size, str_size, const char *)
 
G4Stringremove (str_size)
 
G4Stringremove (str_size, str_size)
 
std::size_t first (char) const
 
std::size_t last (char) const
 
G4bool contains (const 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
 

Private Types

typedef std::string std_string
 

Private Attributes

int dummy
 

Detailed Description

Definition at line 45 of file G4String.hh.

View newest version in sPHENIX GitHub at line 45 of file G4String.hh

Member Typedef Documentation

typedef std::string G4String::std_string
private

Definition at line 61 of file G4String.hh.

View newest version in sPHENIX GitHub at line 61 of file G4String.hh

Member Enumeration Documentation

Enumerator:
exact 
ignoreCase 

Definition at line 65 of file G4String.hh.

View newest version in sPHENIX GitHub at line 65 of file G4String.hh

Enumerator:
leading 
trailing 
both 

Definition at line 66 of file G4String.hh.

View newest version in sPHENIX GitHub at line 66 of file G4String.hh

Constructor & Destructor Documentation

G4String::G4String ( )
inline
G4String::G4String ( char  )
inline
G4String::G4String ( const char *  )
inline
G4String::G4String ( const char *  ,
str_size   
)
inline
G4String::G4String ( const G4String )
inline
G4String::G4String ( const std::string &  )
inline
G4String::G4String ( G4String &&  )
inlinedefault
G4String::~G4String ( )
inline

Definition at line 75 of file G4String.hh.

View newest version in sPHENIX GitHub at line 75 of file G4String.hh

Member Function Documentation

G4int G4String::compareTo ( const char *  ,
caseCompare  mode = exact 
) const
inline

Referenced by G4VisCommandsViewerSet::SetNewValue(), G4VisCommandSceneHandlerCreate::SetNewValue(), and EICG4LumiSteppingAction::UserSteppingAction().

+ Here is the caller graph for this function:

G4int G4String::compareTo ( const G4String ,
caseCompare  mode = exact 
) const
inline
G4bool G4String::contains ( char  ) const
inline
std::size_t G4String::first ( char  ) const
inline

Referenced by G4SDStructure::Activate(), G4VSceneHandler::AddCompound(), G4UIcommandTree::AddNewCommand(), CCalSensAssign::assign(), G4DNAModelInterface::BuildMaterialMolPerVolTable(), G4VLEPTSModel::BuildPhysicsTable(), G4HadronicProcess::CheckEnergyMomentumConservation(), DicomPhantomParameterisationColour::ComputeMaterial(), DicomNestedPhantomParameterisation::ComputeMaterial(), G4XDeltaNstarTable::CrossSectionTable(), G4XNNstarTable::CrossSectionTable(), G4XDeltaDeltastarTable::CrossSectionTable(), G4XNDeltastarTable::CrossSectionTable(), G4PSHitsModel::DescribeYourselfTo(), G4GDMLReadStructure::DivisionvolRead(), G4TrajectoryDrawByEncounteredVolume::Draw(), G4VScoreWriter::DumpAllQuantitiesToFile(), G4SDStructure::ExtractDirName(), G4UIcommandTree::FindCommandTree(), G4UIcommandTree::FindPath(), G4SDStructure::FindSensitiveDetector(), G4tgbGeometryDumper::FindSolidName(), G4tgbGeometryDumper::GetIsotopeName(), G3VolTableEntry::GetMasterClone(), G4tgbGeometryDumper::GetObjectName(), G4AttValueFilterT< T, ConversionErrorPolicy >::GetValidElement(), PHG4MvtxDetector::IsInMvtx(), PHG4EICMvtxDetector::IsInMvtx(), G4tgbGeometryDumper::LookForExistingRotation(), PHG4ScoringManager::makeScoringHistograms(), G4BaryonWidth::MassDependentWidth(), Run::Merge(), G4GDMLReadStructure::PhysvolRead(), G4UIcommandTree::RemoveCommand(), G4GDMLReadStructure::ReplicaRead(), and ScoreSpecies::WriteWithAnalysisManager().

+ Here is the caller graph for this function:

unsigned int G4String::hash ( caseCompare  cmp = exact) const
inline
str_size G4String::index ( char  ,
G4int  pos = 0 
) const
inline
str_size G4String::index ( const G4String ,
str_size  ,
str_size  ,
caseCompare   
) const
inline
std::size_t G4String::last ( char  ) const
inline
G4String::operator const char * ( ) const
inline
G4bool G4String::operator!= ( const G4String ) const
inline
G4bool G4String::operator!= ( const char *  ) const
inline
char G4String::operator() ( str_size  ) const
inline
char& G4String::operator() ( str_size  )
inline
G4String G4String::operator() ( str_size  ,
str_size   
)
inline
G4String& G4String::operator+= ( const char *  )
inline
G4String& G4String::operator+= ( const std::string &  )
inline
G4String& G4String::operator+= ( const char &  )
inline
G4String& G4String::operator= ( const G4String )
inline
G4String& G4String::operator= ( const std::string &  )
inline
G4String& G4String::operator= ( const char *  )
inline
G4String& G4String::operator= ( G4String &&  )
inlinedefault
G4bool G4String::operator== ( const G4String ) const
inline
G4bool G4String::operator== ( const char *  ) const
inline
G4String& G4String::prepend ( const char *  )
inline

Referenced by G4SDManager::Activate(), G4SDStructure::AddNewDetector(), G4SDManager::AddNewDetector(), G4CascadeParamMessenger::CreateDirectory(), G4SDManager::FindSensitiveDetector(), G4VSensitiveDetector::G4VSensitiveDetector(), G4UIGAG::TerminalHelp(), and G4UIGainServer::TerminalHelp().

+ Here is the caller graph for this function:

std::istream& G4String::readLine ( std::istream &  ,
G4bool  skipWhite = true 
)
inline

Referenced by G3CLRead(), G4UIGAG::GetCommand(), G4UIGainServer::GetCommand(), and G4UIcsh::GetCommandLineString().

+ Here is the caller graph for this function:

G4String& G4String::remove ( str_size  ,
str_size   
)
inline
G4String& G4String::replace ( unsigned  int,
unsigned  int,
const char *  ,
unsigned  int 
)
inline

Referenced by G4VMPIsession::BypassCommand(), G4MPIbatch::ReadCommand(), and G4UIbatch::ReadCommand().

+ Here is the caller graph for this function:

G4String& G4String::replace ( str_size  ,
str_size  ,
const char *   
)
inline
unsigned int G4String::stlhash ( ) const
inline
G4int G4String::strcasecompare ( const char *  ,
const char *   
) const
inline
G4String G4String::strip ( G4int  strip_Type = trailing,
char  c = ' ' 
)
inline

Referenced by G4VBasicShell::ApplyShellCommand(), G4VBasicShell::ChangeDirectory(), G4UIGAG::ChangeDirectory(), G4UIGainServer::ChangeDirectory(), G4VBasicShell::ChangeDirectoryCommand(), G4VBasicShell::Complete(), G4UItcsh::CompleteCommand(), F04DetectorConstruction::ConstructDetector(), G4ConversionUtils::Convert(), G4VBasicShell::FindCommand(), G4VBasicShell::FindDirectory(), G4UImanager::FindDirectory(), G4gsmate(), G4UIArrayString::G4UIArrayString(), G4UItcsh::G4UItcsh(), G4VisCommandSceneHandlerCreate::G4VisCommandSceneHandlerCreate(), G4VViewer::G4VViewer(), G4MPIsession::GetCommand(), G4ZMQServer::GetCommand(), G4UIGAG::GetCommand(), G4UIterminal::GetCommand(), G4UIGainServer::GetCommand(), G4UIcsh::GetCommandLineString(), G4VUIshell::GetCommandTree(), G4UIGAG::GetFullPath(), G4UIGainServer::GetFullPath(), GetValues(), G4VUIshell::ListCommand(), G4UIGAG::ListDirectory(), G4VBasicShell::ListDirectory(), G4UIGainServer::ListDirectory(), G4UItcsh::ListMatchedCommand(), G4RadioactiveDecayBase::LoadDecayTable(), G4RadioactiveDecay::LoadDecayTable(), G4VBasicShell::ModifyToFullPathCommand(), G4MPIbatch::ReadCommand(), G4UIbatch::ReadCommand(), readName(), G4UImanager::RemoveAlias(), G4UIExecutive::SelectSessionByFile(), G4VViewer::SetName(), G4VisCommandViewerClone::SetNewValue(), G4VisCommandViewerCreate::SetNewValue(), split(), G4AttCheck::Standard(), G4UIGAG::TerminalHelp(), G4VBasicShell::TerminalHelp(), G4UIGainServer::TerminalHelp(), and G4VisManager::ViewerShortName().

+ Here is the caller graph for this function:

void G4String::toUpper ( )
inline

Referenced by G4UIcommand::ConvertToBool(), G4UImessenger::StoB(), G4UIparameter::TypeCheck(), and G4AnalysisMessengerHelper::Update().

+ Here is the caller graph for this function:

Member Data Documentation

int G4String::dummy
private

Definition at line 47 of file G4String.hh.

View newest version in sPHENIX GitHub at line 47 of file G4String.hh


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