Algorithms Library Toolkit
A toolkit for algorithms, especially for algorithms on formal languages
Public Member Functions | Protected Member Functions | Friends
ext::istream Class Reference

#include <istream.h>

Inheritance diagram for ext::istream:
[legend]

Public Member Functions

 istream (std::basic_streambuf< char > *sb)
 
virtual ~istream () noexcept
 
int peek ()
 
int get ()
 
istreamget (char &ch)
 
istreamunget ()
 
istreamputback (char ch)
 
istreamread (char *s, std::streamsize count)
 
std::streampos tellg ()
 
istreamseekg (std::streampos pos)
 
istreamseekg (std::streamoff off, std::ios_base::seekdir dir)
 
istreamsync ()
 
std::streambuf * rdbuf () const
 
std::streambuf * rdbuf (std::streambuf *buf)
 
void setstate (std::ios_base::iostate state)
 
void clear (std::ios_base::iostate state=std::ios_base::goodbit)
 
bool good () const
 
bool fail () const
 
bool eof () const
 
 operator bool () const
 

Protected Member Functions

 istream (istream &&rhs) noexcept
 
istreamoperator= (istream &&rhs) noexcept
 
 operator std::istream & () &
 
 operator const std::istream & () const &
 

Friends

template<class T >
requires requires
istreamoperator>> (istream &os, const T &val)
 
istreamoperator>> (istream &os, std::istream &(*fn)(std::istream &))
 
istreamoperator>> (istream &os, std::ios_base &(*fn)(std::ios_base &))
 

Constructor & Destructor Documentation

◆ istream() [1/2]

ext::istream::istream ( std::basic_streambuf< char > *  sb)

◆ ~istream()

ext::istream::~istream ( )
virtualdefaultnoexcept

◆ istream() [2/2]

ext::istream::istream ( istream &&  rhs)
protectednoexcept

Member Function Documentation

◆ clear()

void ext::istream::clear ( std::ios_base::iostate  state = std::ios_base::goodbit)
Here is the caller graph for this function:

◆ eof()

bool ext::istream::eof ( ) const
Here is the caller graph for this function:

◆ fail()

bool ext::istream::fail ( ) const
Here is the caller graph for this function:

◆ get() [1/2]

int ext::istream::get ( )
Here is the caller graph for this function:

◆ get() [2/2]

istream & ext::istream::get ( char &  ch)

◆ good()

bool ext::istream::good ( ) const
Here is the caller graph for this function:

◆ operator bool()

ext::istream::operator bool ( ) const

◆ operator const std::istream &()

ext::istream::operator const std::istream & ( ) const &
protected

◆ operator std::istream &()

ext::istream::operator std::istream & ( ) &
protected

◆ operator=()

istream & ext::istream::operator= ( istream &&  rhs)
protectednoexcept

◆ peek()

int ext::istream::peek ( )
Here is the caller graph for this function:

◆ putback()

istream & ext::istream::putback ( char  ch)
Here is the caller graph for this function:

◆ rdbuf() [1/2]

std::streambuf * ext::istream::rdbuf ( ) const
Here is the caller graph for this function:

◆ rdbuf() [2/2]

std::streambuf * ext::istream::rdbuf ( std::streambuf *  buf)

◆ read()

istream & ext::istream::read ( char *  s,
std::streamsize  count 
)

◆ seekg() [1/2]

istream & ext::istream::seekg ( std::streamoff  off,
std::ios_base::seekdir  dir 
)

◆ seekg() [2/2]

istream & ext::istream::seekg ( std::streampos  pos)

◆ setstate()

void ext::istream::setstate ( std::ios_base::iostate  state)

◆ sync()

istream & ext::istream::sync ( )

◆ tellg()

std::streampos ext::istream::tellg ( )
Here is the caller graph for this function:

◆ unget()

istream & ext::istream::unget ( )
Here is the caller graph for this function:

Friends And Related Function Documentation

◆ operator>> [1/3]

template<class T >
requires requires
istream & operator>> ( istream os,
const T &  val 
)
friend

◆ operator>> [2/3]

istream & operator>> ( istream os,
std::ios_base &(*)(std::ios_base &)  fn 
)
friend

◆ operator>> [3/3]

istream & operator>> ( istream os,
std::istream &(*)(std::istream &)  fn 
)
friend

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