A toolkit for working with phylogenetic data.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
StreamInputSource Class Reference

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

Inherits BaseInputSource.

Detailed Description

Input source for reading byte data from an istream.

The input stream is provided via the constructor. It is not owned by this class, thus the owner must keep it alive as long as reading from it is required, and is responsbile for destroying it. This class merely keeps a reference to it.

Definition at line 227 of file input_source.hpp.

Public Member Functions

 StreamInputSource (std::istream &in)
 Construct the input source from an std::istream. More...
 StreamInputSource (StreamInputSource const &)=default
 StreamInputSource (StreamInputSource &&)=default
 ~StreamInputSource ()
StreamInputSourceoperator= (StreamInputSource const &)=default
StreamInputSourceoperator= (StreamInputSource &&)=default
- Public Member Functions inherited from BaseInputSource
 BaseInputSource ()=default
 BaseInputSource (BaseInputSource const &)=default
 BaseInputSource (BaseInputSource &&)=default
virtual ~BaseInputSource ()
BaseInputSourceoperator= (BaseInputSource const &)=default
BaseInputSourceoperator= (BaseInputSource &&)=default
size_t read (char *buffer, size_t size)
 Read size many bytes into the char buffer. More...
std::string source_name () const
 Get a name of the input source. Mainly interesting for user output. More...

Constructor & Destructor Documentation

StreamInputSource ( std::istream &  in)

Construct the input source from an std::istream.

Definition at line 238 of file input_source.hpp.

StreamInputSource ( StreamInputSource const &  )
~StreamInputSource ( )

Definition at line 248 of file input_source.hpp.

Member Function Documentation

StreamInputSource& operator= ( StreamInputSource const &  )
StreamInputSource& operator= ( StreamInputSource &&  )

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