Frobby
0.9.5
|
A replacement for stringstream. More...
#include <FrobbyStringStream.h>
Classes | |
class | NotAnIntegerException |
Public Member Functions | |
FrobbyStringStream & | operator<< (unsigned long long integer) |
FrobbyStringStream & | operator<< (unsigned long integer) |
FrobbyStringStream & | operator<< (unsigned int integer) |
FrobbyStringStream & | operator<< (const mpz_class &integer) |
FrobbyStringStream & | operator<< (const string &text) |
FrobbyStringStream & | operator<< (const char *text) |
FrobbyStringStream & | operator<< (char character) |
This overload actually appends the character to the stream instead of appending a string representation of the number. More... | |
string & | str () |
const string & | str () const |
operator const string & () const | |
void | clear () |
Static Public Member Functions | |
static void | appendIntegerToString (string &str, unsigned long integer) |
static void | appendIntegerToString (string &str, const mpz_class &integer) |
static void | parseInteger (mpz_class &integer, const string &str) |
Throws NotAnIntegerException if str is not the string representation of an integer. More... | |
Private Attributes | |
string | _str |
A replacement for stringstream.
See the .cpp file for a motivation to use this instead of the regular stringstream. It should not be used for operations that need to be efficient.
Definition at line 26 of file FrobbyStringStream.h.
|
static |
Definition at line 109 of file FrobbyStringStream.cpp.
|
static |
Definition at line 86 of file FrobbyStringStream.cpp.
|
inline |
Definition at line 44 of file FrobbyStringStream.h.
FrobbyStringStream::operator const string & | ( | ) | const |
Definition at line 82 of file FrobbyStringStream.cpp.
FrobbyStringStream & FrobbyStringStream::operator<< | ( | char | character | ) |
This overload actually appends the character to the stream instead of appending a string representation of the number.
This is different from stringstream.
Definition at line 39 of file FrobbyStringStream.cpp.
FrobbyStringStream & FrobbyStringStream::operator<< | ( | const char * | text | ) |
Definition at line 69 of file FrobbyStringStream.cpp.
FrobbyStringStream & FrobbyStringStream::operator<< | ( | const mpz_class & | integer | ) |
Definition at line 59 of file FrobbyStringStream.cpp.
FrobbyStringStream & FrobbyStringStream::operator<< | ( | const string & | text | ) |
Definition at line 64 of file FrobbyStringStream.cpp.
FrobbyStringStream & FrobbyStringStream::operator<< | ( | unsigned int | integer | ) |
Definition at line 54 of file FrobbyStringStream.cpp.
FrobbyStringStream & FrobbyStringStream::operator<< | ( | unsigned long | integer | ) |
Definition at line 49 of file FrobbyStringStream.cpp.
FrobbyStringStream & FrobbyStringStream::operator<< | ( | unsigned long long | integer | ) |
Definition at line 44 of file FrobbyStringStream.cpp.
|
static |
Throws NotAnIntegerException if str is not the string representation of an integer.
Definition at line 114 of file FrobbyStringStream.cpp.
string & FrobbyStringStream::str | ( | ) |
Definition at line 74 of file FrobbyStringStream.cpp.
const string & FrobbyStringStream::str | ( | ) | const |
Definition at line 78 of file FrobbyStringStream.cpp.
|
private |
Definition at line 58 of file FrobbyStringStream.h.