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

#include <genesis/placement/formats/serializer.hpp>

Detailed Description

Definition at line 52 of file placement/formats/serializer.hpp.

Static Public Member Functions

static Sample load (std::string const &file_name)
 Loads a Sample from a binary file that was written by using save(). More...
 
static void save (Sample const &map, std::string const &file_name)
 Saves the Sample to a binary file that can later be read by using load(). More...
 

Static Public Attributes

static unsigned char version = 1
 Version of this serialization helper. Is written to the stream and read again to make sure that different versions don't crash inexpectedly. More...
 

Member Function Documentation

Sample load ( std::string const &  file_name)
static

Loads a Sample from a binary file that was written by using save().

Definition at line 116 of file serializer.cpp.

void save ( Sample const &  map,
std::string const &  file_name 
)
static

Saves the Sample to a binary file that can later be read by using load().

Definition at line 61 of file serializer.cpp.

Member Data Documentation

unsigned char version = 1
static

Version of this serialization helper. Is written to the stream and read again to make sure that different versions don't crash inexpectedly.

Definition at line 59 of file placement/formats/serializer.hpp.


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