Frobby 0.10.0
Loading...
Searching...
No Matches
FrobbyStringStream Class Reference

#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)

Detailed Description

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.

Member Function Documentation

◆ operator<<()

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.

◆ parseInteger()

void FrobbyStringStream::parseInteger ( mpz_class & integer,
const string & str )
static

Throws NotAnIntegerException if str is not the string representation of an integer.


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