This class implements a quick and dirty way to create formatted strings -- it is simpler to use that strstream but may be slower if you are working on large streams. This kind of string is appropriate for quick formatting activities. More...
#include <streamable.h>
Public Types | |
typedef OstreamableBuffer < StreamableString, char, std::char_traits< char > > | buf_type |
typedef char | char_type |
typedef traits_type::int_type | int_type |
typedef traits_type::off_type | off_type |
typedef traits_type::pos_type | pos_type |
typedef std::char_traits< char > | traits_type |
Public Member Functions | |
StreamableString & | operator= (char const *rhs) |
StreamableString & | operator= (std::string const &rhs) |
void | ostreamable_helper (char c) |
Helper that actually performs concatenations. | |
StreamableString (char const *r) | |
Create from C style string. | |
StreamableString (std::string const &r) | |
Create from std::string. | |
StreamableString (StreamableString const &r) | |
Copy constructor (only string content). | |
StreamableString () | |
Default constructor. |
This class implements a quick and dirty way to create formatted strings -- it is simpler to use that strstream but may be slower if you are working on large streams. This kind of string is appropriate for quick formatting activities.
Definition at line 133 of file streamable.h.
typedef OstreamableBuffer<StreamableString , char , std::char_traits<char > > buf_type [inherited] |
Definition at line 102 of file streamable.h.
typedef char char_type [inherited] |
Definition at line 96 of file streamable.h.
typedef traits_type::int_type int_type [inherited] |
Definition at line 98 of file streamable.h.
typedef traits_type::off_type off_type [inherited] |
Definition at line 99 of file streamable.h.
typedef traits_type::pos_type pos_type [inherited] |
Definition at line 100 of file streamable.h.
typedef std::char_traits<char > traits_type [inherited] |
Definition at line 97 of file streamable.h.
StreamableString | ( | ) |
Default constructor.
Definition at line 153 of file streamable.h.
StreamableString | ( | StreamableString const & | r | ) |
Copy constructor (only string content).
Definition at line 158 of file streamable.h.
StreamableString | ( | std::string const & | r | ) |
Create from std::string.
Definition at line 165 of file streamable.h.
StreamableString | ( | char const * | r | ) |
Create from C style string.
Definition at line 172 of file streamable.h.
StreamableString& operator= | ( | char const * | rhs | ) |
Definition at line 186 of file streamable.h.
StreamableString& operator= | ( | std::string const & | rhs | ) |
Definition at line 178 of file streamable.h.
void ostreamable_helper | ( | char | c | ) |
Helper that actually performs concatenations.
Definition at line 145 of file streamable.h.