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

#include <fstream.h>

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

Public Member Functions

 ofstream (const char *filename)
 
 ofstream (const std::string &filename)
 
 ofstream (ofstream &&rhs) noexcept
 
ofstreamoperator= (ofstream &&) noexcept=default
 
void swap (ofstream &other)
 
void open (const char *filename, std::ios_base::openmode mode=std::ios_base::out)
 
void close ()
 
bool is_open ()
 
bool is_open () const
 
std::filebuf * rdbuf ()
 
const std::filebuf * rdbuf () const
 
- Public Member Functions inherited from ext::ostream
 ostream (std::basic_streambuf< char > *sb)
 
virtual ~ostream () noexcept
 
ostreamput (char ch)
 
ostreamwrite (const char *s, std::streamsize count)
 
std::streampos tellp ()
 
ostreamseekp (std::streampos pos)
 
ostreamseekp (std::streamoff off, std::ios_base::seekdir dir)
 
ostreamflush ()
 
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)
 

Additional Inherited Members

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

Constructor & Destructor Documentation

◆ ofstream() [1/3]

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

◆ ofstream() [2/3]

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

◆ ofstream() [3/3]

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

Member Function Documentation

◆ close()

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

◆ is_open() [1/2]

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

◆ is_open() [2/2]

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

◆ open()

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

◆ operator=()

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

◆ rdbuf() [1/2]

std::filebuf * ext::ofstream::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::ofstream::rdbuf ( ) const
inline
Here is the call graph for this function:

◆ swap()

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

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