cxxtools::BasicIStream< CharT > Class Template Reference

An istream with peeking capability. More...

#include <cxxtools/iostream.h>

Inheritance diagram for cxxtools::BasicIStream< CharT >:
basic_istream

Public Member Functions

 BasicIStream (BasicStreamBuffer< CharT > *buffer=0)
 ~BasicIStream ()
BasicStreamBuffer< CharT > * attachedBuffer ()
 Access to the underlying buffer.
BasicStreamBuffer< CharT > * attachBuffer (BasicStreamBuffer< CharT > *buffer)
std::streamsize peeksome (CharT *buffer, std::streamsize n)
 Peeks bytes in the stream buffer.

Detailed Description

template<typename CharT>
class cxxtools::BasicIStream< CharT >

An istream with peeking capability.

Constructor & Destructor Documentation

template<typename CharT>
cxxtools::BasicIStream< CharT >::BasicIStream ( BasicStreamBuffer< CharT > *  buffer = 0)
inlineexplicit
template<typename CharT>
cxxtools::BasicIStream< CharT >::~BasicIStream ( )
inline

Member Function Documentation

template<typename CharT>
BasicStreamBuffer<CharT>* cxxtools::BasicIStream< CharT >::attachBuffer ( BasicStreamBuffer< CharT > *  buffer)
inline
template<typename CharT>
BasicStreamBuffer<CharT>* cxxtools::BasicIStream< CharT >::attachedBuffer ( )
inline

Access to the underlying buffer.

template<typename CharT>
std::streamsize cxxtools::BasicIStream< CharT >::peeksome ( CharT *  buffer,
std::streamsize  n 
)
inline

Peeks bytes in the stream buffer.

The number of bytes that can be peeked depends on the current stream buffer get area and maybe less than requested, similar to istream::readsome().


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