SDSL  3.0.0
Succinct Data Structure Library
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. More...
 
 osfstream (const std::string &file, std::ios_base::openmode mode=std::ios_base::out)
 Constructor taking a file name and open mode. More...
 
buf_ptr_type open (const std::string &file, std::ios_base::openmode mode=std::ios_base::out)
 Open the stream. More...
 
bool is_open ()
 Is the stream close? More...
 
void close ()
 Close the stream. More...
 
 ~osfstream ()
 Standard destructor. More...
 
 operator voidptr () const
 Cast to void*. More...
 
osfstreamseekp (pos_type pos)
 
osfstreamseekp (off_type off, ios_base::seekdir way)
 
std::streampos tellp ()
 

Detailed Description

Definition at line 21 of file sfstream.hpp.

Member Typedef Documentation

◆ buf_ptr_type

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

Definition at line 24 of file sfstream.hpp.

◆ voidptr

typedef void* sdsl::osfstream::voidptr

Definition at line 31 of file sfstream.hpp.

Constructor & Destructor Documentation

◆ osfstream() [1/2]

sdsl::osfstream::osfstream ( )
inline

Standard constructor.

Definition at line 33 of file sfstream.hpp.

◆ osfstream() [2/2]

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

Constructor taking a file name and open mode.

Definition at line 40 of file sfstream.hpp.

◆ ~osfstream()

sdsl::osfstream::~osfstream ( )
inline

Standard destructor.

Definition at line 103 of file sfstream.hpp.

Member Function Documentation

◆ close()

void sdsl::osfstream::close ( )
inline

Close the stream.

Definition at line 87 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 ( const std::string &  file,
std::ios_base::openmode  mode = std::ios_base::out 
)
inline

Open the stream.

Definition at line 48 of file sfstream.hpp.

◆ operator voidptr()

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

Cast to void*.

Definition at line 109 of file sfstream.hpp.

◆ seekp() [1/2]

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

Definition at line 138 of file sfstream.hpp.

◆ seekp() [2/2]

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

Definition at line 111 of file sfstream.hpp.

◆ tellp()

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

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