SDSL 3.0.3
Succinct Data Structure Library
Loading...
Searching...
No Matches
sdsl::osfstream Class Reference

#include <sfstream.hpp>

Inheritance diagram for sdsl::osfstream:

Public Types

typedef std::streambuf * buf_ptr_type
 
typedef void * voidptr
 

Public Member Functions

 osfstream ()
 Standard constructor.
 
 osfstream (std::string const &file, std::ios_base::openmode mode=std::ios_base::out)
 Constructor taking a file name and open mode.
 
buf_ptr_type open (std::string const &file, std::ios_base::openmode mode=std::ios_base::out)
 Open the stream.
 
bool is_open ()
 Is the stream close?
 
void close ()
 Close the stream.
 
 ~osfstream ()
 Standard destructor.
 
 operator voidptr () const
 Cast to void*.
 
osfstreamseekp (pos_type pos)
 
osfstreamseekp (off_type off, ios_base::seekdir way)
 
std::streampos tellp ()
 

Detailed Description

Definition at line 20 of file sfstream.hpp.

Member Typedef Documentation

◆ buf_ptr_type

typedef std::streambuf* sdsl::osfstream::buf_ptr_type

Definition at line 23 of file sfstream.hpp.

◆ voidptr

typedef void* sdsl::osfstream::voidptr

Definition at line 30 of file sfstream.hpp.

Constructor & Destructor Documentation

◆ osfstream() [1/2]

sdsl::osfstream::osfstream ( )
inline

Standard constructor.

Definition at line 32 of file sfstream.hpp.

◆ osfstream() [2/2]

sdsl::osfstream::osfstream ( std::string const & file,
std::ios_base::openmode mode = std::ios_base::out )
inline

Constructor taking a file name and open mode.

Definition at line 38 of file sfstream.hpp.

◆ ~osfstream()

sdsl::osfstream::~osfstream ( )
inline

Standard destructor.

Definition at line 114 of file sfstream.hpp.

Member Function Documentation

◆ close()

void sdsl::osfstream::close ( )
inline

Close the stream.

Definition at line 91 of file sfstream.hpp.

◆ is_open()

bool sdsl::osfstream::is_open ( )
inline

Is the stream close?

Definition at line 76 of file sfstream.hpp.

◆ open()

buf_ptr_type sdsl::osfstream::open ( std::string const & file,
std::ios_base::openmode mode = std::ios_base::out )
inline

Open the stream.

Definition at line 45 of file sfstream.hpp.

◆ operator voidptr()

sdsl::osfstream::operator voidptr ( ) const
inline

Cast to void*.

Definition at line 120 of file sfstream.hpp.

◆ seekp() [1/2]

osfstream & sdsl::osfstream::seekp ( off_type off,
ios_base::seekdir way )
inline

Definition at line 158 of file sfstream.hpp.

◆ seekp() [2/2]

osfstream & sdsl::osfstream::seekp ( pos_type pos)
inline

Definition at line 125 of file sfstream.hpp.

◆ tellp()

std::streampos sdsl::osfstream::tellp ( )

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