souffle  2.0.2-371-g6315b36
Public Member Functions | Protected Attributes
souffle::gzfstream::internal::gzfstream Class Reference

#include <gzfstream.h>

Inheritance diagram for souffle::gzfstream::internal::gzfstream:
Inheritance graph
Collaboration diagram for souffle::gzfstream::internal::gzfstream:
Collaboration graph

Public Member Functions

void close ()
 
 gzfstream ()
 
 gzfstream (const gzfstream &)=delete
 
 gzfstream (const std::string &filename, std::ios_base::openmode mode)
 
 gzfstream (gzfstream &&)=delete
 
bool is_open ()
 
void open (const std::string &filename, std::ios_base::openmode mode)
 
gzfstreambufrdbuf () const
 
 ~gzfstream () override=default
 

Protected Attributes

gzfstreambuf buf
 

Detailed Description

Definition at line 163 of file gzfstream.h.

Constructor & Destructor Documentation

◆ gzfstream() [1/4]

souffle::gzfstream::internal::gzfstream::gzfstream ( )
inline

Definition at line 165 of file gzfstream.h.

165  {
166  if (buf.open(filename, mode) == nullptr) {
167  clear(rdstate() | std::ios::badbit);

Referenced by souffle::gzfstream::internal::gzfstreambuf::sync().

◆ gzfstream() [2/4]

souffle::gzfstream::internal::gzfstream::gzfstream ( const std::string &  filename,
std::ios_base::openmode  mode 
)
inline

Definition at line 169 of file gzfstream.h.

171  {
172  return buf.is_open();

◆ gzfstream() [3/4]

souffle::gzfstream::internal::gzfstream::gzfstream ( const gzfstream )
delete

◆ gzfstream() [4/4]

souffle::gzfstream::internal::gzfstream::gzfstream ( gzfstream &&  )
delete

◆ ~gzfstream()

souffle::gzfstream::internal::gzfstream::~gzfstream ( )
overridedefault

Member Function Documentation

◆ close()

void souffle::gzfstream::internal::gzfstream::close ( )
inline

Definition at line 190 of file gzfstream.h.

193  : public internal::gzfstream, public std::istream {
194 public:
195  igzfstream() : internal::gzfstream(), std::istream(&buf) {}
196 

◆ is_open()

bool souffle::gzfstream::internal::gzfstream::is_open ( )
inline

Definition at line 186 of file gzfstream.h.

187  :
188  mutable gzfstreambuf buf;

◆ open()

void souffle::gzfstream::internal::gzfstream::open ( const std::string &  filename,
std::ios_base::openmode  mode 
)
inline

◆ rdbuf()

gzfstreambuf* souffle::gzfstream::internal::gzfstream::rdbuf ( ) const
inline

Definition at line 198 of file gzfstream.h.

198  : internal::gzfstream(filename, mode), std::istream(&buf) {}
199 
200  igzfstream(const igzfstream&) = delete;

Field Documentation

◆ buf

gzfstreambuf souffle::gzfstream::internal::gzfstream::buf
mutableprotected

Definition at line 203 of file gzfstream.h.

Referenced by souffle::gzfstream::internal::gzfstreambuf::sync().


The documentation for this class was generated from the following file:
souffle::gzfstream::internal::gzfstreambuf::open
gzfstreambuf * open(const std::string &filename, std::ios_base::openmode mode)
Definition: gzfstream.h:61
souffle::gzfstream::internal::gzfstream::buf
gzfstreambuf buf
Definition: gzfstream.h:203
souffle::gzfstream::internal::gzfstreambuf::is_open
bool is_open() const
Definition: gzfstream.h:92
souffle::gzfstream::internal::gzfstream::gzfstream
gzfstream()
Definition: gzfstream.h:165
std
Definition: Brie.h:3053