lean cpp library
A lean C++ library providing efficient utility classes for high-performance C++ applications.
Public Types | Public Member Functions
lean::strings::basic_charstream< Elem, Traits > Class Template Reference

Character stream class that allows for allocation-free usage of STL streaming facilities. More...

#include <charstream.h>

Inheritance diagram for lean::strings::basic_charstream< Elem, Traits >:

List of all members.

Public Types

typedef
holder_base_type::stream_buffer 
stream_buffer
 Stream buffer type.

Public Member Functions

 basic_charstream (char_type *begin, char_type *end)
 Constructs a character stream from the given character range.
 basic_charstream (char_type *begin)
 Constructs an unlimited character stream from the given character buffer pointer.
basic_charstreamreset ()
 Resets the character stream.
stream_bufferrdbuf () const
 Returns the address of the stored stream buffer object.
char_type * begin () const
 Gets the beginning of the underlying buffer.
char_type * end () const
 Gets the end of the underlying buffer.
char_type * write_end () const
 Gets the current write position in the underlying buffer.
char_type * read_end () const
 Gets the current read position in the underlying buffer.

Detailed Description

template<class Elem, class Traits = std::char_traits<Elem>>
class lean::strings::basic_charstream< Elem, Traits >

Character stream class that allows for allocation-free usage of STL streaming facilities.


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