Import Geant4 10.3.1 source tree
This commit is contained in:
@@ -24,7 +24,7 @@
|
||||
// ********************************************************************
|
||||
//
|
||||
//
|
||||
// $Id: G4String.hh 94844 2015-12-10 16:23:09Z gcosmo $
|
||||
// $Id: G4String.hh 102537 2017-02-08 14:02:58Z gcosmo $
|
||||
//
|
||||
//
|
||||
//---------------------------------------------------------------
|
||||
@@ -55,50 +55,7 @@
|
||||
#endif
|
||||
|
||||
typedef std::string::size_type str_size;
|
||||
|
||||
class G4String;
|
||||
|
||||
class G4SubString
|
||||
{
|
||||
public:
|
||||
|
||||
inline G4SubString(const G4SubString&);
|
||||
|
||||
inline G4SubString& operator=(const char*);
|
||||
|
||||
inline G4SubString& operator=(const G4SubString&);
|
||||
|
||||
inline char& operator()(str_size);
|
||||
inline char operator()(str_size) const;
|
||||
inline char& operator[](str_size);
|
||||
inline char operator[](str_size) const;
|
||||
|
||||
inline G4int operator!() const;
|
||||
|
||||
inline G4bool operator==(const G4String&) const;
|
||||
inline G4bool operator==(const char*) const;
|
||||
inline G4bool operator!=(const G4String&) const;
|
||||
inline G4bool operator!=(const char*) const;
|
||||
|
||||
inline str_size length() const;
|
||||
inline str_size start() const;
|
||||
|
||||
// For detecting null substrings
|
||||
//
|
||||
inline G4bool isNull() const;
|
||||
|
||||
private:
|
||||
|
||||
inline G4SubString(G4String&, str_size, str_size);
|
||||
|
||||
G4String* mystring;
|
||||
str_size mystart;
|
||||
str_size extent;
|
||||
|
||||
friend class G4String;
|
||||
|
||||
};
|
||||
|
||||
typedef std::string G4SubString;
|
||||
|
||||
class G4String : public std::string
|
||||
{
|
||||
@@ -115,7 +72,6 @@ public:
|
||||
inline G4String ( const char * );
|
||||
inline G4String ( const char *, str_size );
|
||||
inline G4String ( const G4String& );
|
||||
inline G4String ( const G4SubString& );
|
||||
inline G4String ( const std::string & );
|
||||
~G4String () {}
|
||||
|
||||
@@ -126,7 +82,6 @@ public:
|
||||
inline char operator () (str_size) const;
|
||||
inline char& operator () (str_size);
|
||||
|
||||
inline G4String& operator+=(const G4SubString&);
|
||||
inline G4String& operator+=(const char*);
|
||||
inline G4String& operator+=(const std::string &);
|
||||
inline G4String& operator+=(const char&);
|
||||
@@ -136,7 +91,7 @@ public:
|
||||
inline G4bool operator!=(const char*) const;
|
||||
|
||||
inline operator const char*() const;
|
||||
inline G4SubString operator()(str_size, str_size);
|
||||
inline G4String operator()(str_size, str_size);
|
||||
|
||||
inline G4int compareTo(const char*, caseCompare mode=exact) const;
|
||||
inline G4int compareTo(const G4String&, caseCompare mode=exact) const;
|
||||
|
||||
Reference in New Issue
Block a user