Algorithms Library Toolkit
A toolkit for algorithms, especially for algorithms on formal languages
Public Member Functions
ext::ifstream Class Reference

#include <fstream.h>

Inheritance diagram for ext::ifstream:
[legend]
Collaboration diagram for ext::ifstream:
[legend]

Public Member Functions

 ifstream (const char *filename)
 
 ifstream (const std::string &filename)
 
 ifstream (ifstream &&rhs) noexcept
 
ifstreamoperator= (ifstream &&) noexcept=default
 
void swap (ifstream &other)
 
void open (const char *filename, std::ios_base::openmode mode=std::ios_base::in)
 
void close ()
 
bool is_open ()
 
bool is_open () const
 
std::filebuf * rdbuf ()
 
const std::filebuf * rdbuf () const
 
- Public Member Functions inherited from ext::istream
 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
 

Additional Inherited Members

- Protected Member Functions inherited from ext::istream
 istream (istream &&rhs) noexcept
 
istreamoperator= (istream &&rhs) noexcept
 
 operator std::istream & () &
 
 operator const std::istream & () const &
 

Constructor & Destructor Documentation

◆ ifstream() [1/3]

ext::ifstream::ifstream ( const char *  filename)
inline
Here is the call graph for this function:
Here is the caller graph for this function:

◆ ifstream() [2/3]

ext::ifstream::ifstream ( const std::string &  filename)
inline

◆ ifstream() [3/3]

ext::ifstream::ifstream ( ifstream &&  rhs)
inlinenoexcept
Here is the call graph for this function:

Member Function Documentation

◆ close()

void ext::ifstream::close ( )
inline
Here is the call graph for this function:
Here is the caller graph for this function:

◆ is_open() [1/2]

bool ext::ifstream::is_open ( )
inline
Here is the call graph for this function:

◆ is_open() [2/2]

bool ext::ifstream::is_open ( ) const
inline
Here is the call graph for this function:

◆ open()

void ext::ifstream::open ( const char *  filename,
std::ios_base::openmode  mode = std::ios_base::in 
)
inline
Here is the call graph for this function:
Here is the caller graph for this function:

◆ operator=()

ifstream & ext::ifstream::operator= ( ifstream &&  )
defaultnoexcept

◆ rdbuf() [1/2]

std::filebuf * ext::ifstream::rdbuf ( )
inline
Here is the call graph for this function:
Here is the caller graph for this function:

◆ rdbuf() [2/2]

const std::filebuf * ext::ifstream::rdbuf ( ) const
inline
Here is the call graph for this function:

◆ swap()

void ext::ifstream::swap ( ifstream other)
inline

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