A library for working with phylogenetic and population genetic data.
StrictFStreamHolder< FStreamType > Struct Template Reference

#include <genesis/utils/io/gzip_stream.hpp>

Detailed Description

template<typename FStreamType>
struct genesis::utils::StrictFStreamHolder< FStreamType >

Helper class template for managing the construction order between stream classes.

This class template is needed because the GzipIFStream and GzipOFStream classes need to combine some other classes in the correct order, so that they can be properly constructed.

The class template is based on the zstr::detail::strict_fstream_holder class template of the excellent zstr library by Matei David; see also our Acknowledgements.

See also

Definition at line 233 of file gzip_stream.hpp.

Public Member Functions

 StrictFStreamHolder (std::string const &filename, std::ios_base::openmode mode=std::ios_base::in)

Public Attributes

FStreamType file_stream_

Constructor & Destructor Documentation

◆ StrictFStreamHolder()

StrictFStreamHolder ( std::string const &  filename,
std::ios_base::openmode  mode = std::ios_base::in 

Definition at line 235 of file gzip_stream.hpp.

Member Data Documentation

◆ file_stream_

FStreamType file_stream_

Definition at line 239 of file gzip_stream.hpp.

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