|
Geant4 11.4.0
Toolkit for the simulation of the passage of particles through matter
|
#include <MCGIDI_string.hpp>
Public Types | |
| typedef size_t | size_type |
Static Public Attributes | |
| static const size_type | npos = static_cast<size_t>(-1) |
Friends | |
| String LUPI_HOST_DEVICE | operator+ (const String &lhs, const String &rhs) |
Definition at line 72 of file MCGIDI_string.hpp.
| typedef size_t MCGIDI::String::size_type |
Definition at line 80 of file MCGIDI_string.hpp.
| LUPI_HOST_DEVICE MCGIDI::String::String | ( | ) |
Definition at line 69 of file MCGIDI_string.cc.
Referenced by append(), clearMemory(), compare(), erase(), operator+, operator+=(), operator+=(), operator+=(), operator=(), operator=(), operator==(), String(), substr(), and swap().
| LUPI_HOST_DEVICE MCGIDI::String::~String | ( | ) |
Definition at line 71 of file MCGIDI_string.cc.
| LUPI_HOST_DEVICE MCGIDI::String::String | ( | const String & | s | ) |
Definition at line 76 of file MCGIDI_string.cc.
| LUPI_HOST_DEVICE MCGIDI::String::String | ( | const char * | s | ) |
Definition at line 85 of file MCGIDI_string.cc.
| LUPI_HOST_DEVICE String & MCGIDI::String::append | ( | const char * | str, |
| size_type | n ) |
Append n characters of a string.
Definition at line 251 of file MCGIDI_string.cc.
| LUPI_HOST_DEVICE char & MCGIDI::String::at | ( | const size_type | i | ) |
Definition at line 212 of file MCGIDI_string.cc.
| LUPI_HOST_DEVICE char MCGIDI::String::at | ( | const size_type | i | ) | const |
Definition at line 219 of file MCGIDI_string.cc.
|
inline |
raw data
Definition at line 121 of file MCGIDI_string.hpp.
Referenced by MCGIDI::Functions::Function1d_d1::evaluate(), MCGIDI::Functions::Function1d_d2::evaluate(), MCGIDI::operator<(), MCGIDI::serializeFunction1d(), MCGIDI::serializeFunction1d_d1(), and MCGIDI::serializeFunction1d_d2().
|
inline |
Definition at line 109 of file MCGIDI_string.hpp.
| LUPI_HOST_DEVICE void MCGIDI::String::clear | ( | ) |
Definition at line 177 of file MCGIDI_string.cc.
| LUPI_HOST_DEVICE void MCGIDI::String::clearMemory | ( | ) |
Definition at line 171 of file MCGIDI_string.cc.
| LUPI_HOST_DEVICE int MCGIDI::String::compare | ( | size_type | pos, |
| size_type | len, | ||
| const char * | str ) const |
Definition at line 280 of file MCGIDI_string.cc.
| LUPI_HOST_DEVICE int MCGIDI::String::compare | ( | size_type | pos, |
| size_type | len, | ||
| const String & | str ) const |
Definition at line 265 of file MCGIDI_string.cc.
|
inline |
Definition at line 119 of file MCGIDI_string.hpp.
| LUPI_HOST_DEVICE String & MCGIDI::String::erase | ( | size_type | pos, |
| size_type | len ) |
erase len characters at position pos
Definition at line 227 of file MCGIDI_string.cc.
|
inline |
Definition at line 112 of file MCGIDI_string.hpp.
|
inline |
as size()
Definition at line 106 of file MCGIDI_string.hpp.
| LUPI_HOST_DEVICE String & MCGIDI::String::operator+= | ( | char | c | ) |
Definition at line 141 of file MCGIDI_string.cc.
| LUPI_HOST_DEVICE String & MCGIDI::String::operator+= | ( | const char * | s | ) |
Definition at line 122 of file MCGIDI_string.cc.
| LUPI_HOST_DEVICE String & MCGIDI::String::operator+= | ( | const String & | s | ) |
Definition at line 111 of file MCGIDI_string.cc.
| LUPI_HOST_DEVICE String & MCGIDI::String::operator= | ( | const char * | s | ) |
Definition at line 90 of file MCGIDI_string.cc.
Referenced by operator=().
| LUPI_HOST_DEVICE String & MCGIDI::String::operator= | ( | const String & | s | ) |
Definition at line 106 of file MCGIDI_string.cc.
| LUPI_HOST_DEVICE bool MCGIDI::String::operator== | ( | const char * | s | ) | const |
Definition at line 161 of file MCGIDI_string.cc.
| LUPI_HOST_DEVICE bool MCGIDI::String::operator== | ( | const String & | s | ) | const |
Definition at line 166 of file MCGIDI_string.cc.
|
inline |
Definition at line 148 of file MCGIDI_string.hpp.
|
inline |
Definition at line 149 of file MCGIDI_string.hpp.
| LUPI_HOST_DEVICE void MCGIDI::String::push_back | ( | char | c | ) |
Definition at line 148 of file MCGIDI_string.cc.
Referenced by operator+=().
| LUPI_HOST_DEVICE void MCGIDI::String::reserve | ( | size_type | n, |
| char ** | address = nullptr ) |
Reserve internal string memory so that n characters can be put into the string (plus 1 for the NUL char). If there is already enough memory, nothing happens, if not, the memory will be realloated to exactly this amount.
Definition at line 317 of file MCGIDI_string.cc.
Referenced by append(), operator+=(), operator+=(), push_back(), and resize().
| LUPI_HOST_DEVICE void MCGIDI::String::resize | ( | size_type | n, |
| char ** | address = nullptr ) |
Resize string. If n is less than the current size, the string will be truncated. If n is larger, then the memory will be reallocated to exactly this amount, and the additional characters will be NUL characters.
Definition at line 324 of file MCGIDI_string.cc.
| LUPI_HOST_DEVICE void MCGIDI::String::resize | ( | size_type | n, |
| char | c, | ||
| char ** | address = nullptr ) |
Resize string. If n is less than the current size, the string will be truncated. If n is larger, then the memory will be reallocated to exactly this amount, and the additional characters will be c characters.
Definition at line 328 of file MCGIDI_string.cc.
|
inline |
size without terminating NUL
Definition at line 105 of file MCGIDI_string.hpp.
Referenced by compare().
| LUPI_HOST_DEVICE String MCGIDI::String::substr | ( | const size_type | pos, |
| size_type | length ) const |
Definition at line 188 of file MCGIDI_string.cc.
| LUPI_HOST_DEVICE void MCGIDI::String::swap | ( | String & | s | ) |
swap contents
Definition at line 342 of file MCGIDI_string.cc.
Referenced by clearMemory(), and operator+=().
|
friend |
Definition at line 183 of file MCGIDI_string.cc.
|
static |
Definition at line 81 of file MCGIDI_string.hpp.