util::StringStream Class Reference

#include <string_stream.hh>

Inheritance diagram for util::StringStream:

Inheritance graph
Collaboration diagram for util::StringStream:

Collaboration graph

List of all members.

Public Member Functions

 StringStream ()
StringStreamflush ()
StringStreamwrite (const void *data, std::size_t length)
const std::string & str () const
void str (const std::string &val)
void swap (std::string &str)

Protected Member Functions

char * Ensure (std::size_t amount)
void AdvanceTo (char *to)


class FakeOStream< StringStream >

Detailed Description

Definition at line 11 of file string_stream.hh.

Constructor & Destructor Documentation

util::StringStream::StringStream (  )  [inline]

Definition at line 13 of file string_stream.hh.

Member Function Documentation

void util::StringStream::AdvanceTo ( char *  to  )  [inline, protected]

Definition at line 36 of file string_stream.hh.

References out_.

char* util::StringStream::Ensure ( std::size_t  amount  )  [inline, protected]

Definition at line 30 of file string_stream.hh.

References out_.

StringStream& util::StringStream::flush (  )  [inline]

Definition at line 15 of file string_stream.hh.

void util::StringStream::str ( const std::string &  val  )  [inline]

Definition at line 24 of file string_stream.hh.

const std::string& util::StringStream::str (  )  const [inline]

void util::StringStream::swap ( std::string &  str  )  [inline]

Definition at line 26 of file string_stream.hh.

Referenced by util::Exception::SetLocation().

Here is the caller graph for this function:

StringStream& util::StringStream::write ( const void *  data,
std::size_t  length 
) [inline]

Definition at line 17 of file string_stream.hh.

Friends And Related Function Documentation

friend class FakeOStream< StringStream > [friend]

Definition at line 29 of file string_stream.hh.

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

Generated on Thu Jul 6 00:34:52 2017 for Moses by  doxygen 1.5.9