|
Frobby 0.10.0
|
#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) |
| 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) |
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.
| 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.
|
static |
Throws NotAnIntegerException if str is not the string representation of an integer.