#include <memstream.h>
Public Types | |
typedef Traits_t::char_type | char_type |
typedef Traits_t::int_type | int_type |
typedef Traits_t | traits_type |
Public Member Functions | |
basic_imemstream (const char_type *buf, size_t size) | |
Private Member Functions | |
int_type | underflow () |
Definition at line 67 of file memstream.h.
typedef Traits_t::char_type ext::basic_imemstream< Item_t, Traits_t, Allocator_t >::char_type |
Definition at line 70 of file memstream.h.
typedef Traits_t::int_type ext::basic_imemstream< Item_t, Traits_t, Allocator_t >::int_type |
Definition at line 71 of file memstream.h.
typedef Traits_t ext::basic_imemstream< Item_t, Traits_t, Allocator_t >::traits_type |
Definition at line 72 of file memstream.h.
ext::basic_imemstream< Item_t, Traits_t, Allocator_t >::basic_imemstream | ( | const char_type * | buf, |
size_t | size | ||
) | [inline] |
Definition at line 74 of file memstream.h.
: std::basic_istream<Item_t, Traits_t>(this) { this->exceptions(std::ios_base::badbit); this->setg(const_cast<char_type*>(buf), const_cast<char_type*>(buf), const_cast<char_type*>(buf + size)); }
int_type ext::basic_imemstream< Item_t, Traits_t, Allocator_t >::underflow | ( | ) | [inline, private] |
Definition at line 84 of file memstream.h.
{ if (this->gptr() && this->gptr() < this->egptr()) return traits_type::to_int_type(*this->gptr()); return traits_type::eof(); }