A toolkit for working with phylogenetic data.
v0.24.0
SampleSerializer Class Reference

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

Detailed Description

Definition at line 54 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 SampleSet load (std::vector< std::string > const &file_names)
 
static void load (std::vector< std::string > const &file_names, SampleSet &sample_set)
 
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

◆ load() [1/3]

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

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

Definition at line 122 of file serializer.cpp.

◆ load() [2/3]

SampleSet load ( std::vector< std::string > const &  file_names)
static

Definition at line 181 of file serializer.cpp.

◆ load() [3/3]

void load ( std::vector< std::string > const &  file_names,
SampleSet sample_set 
)
static

Definition at line 188 of file serializer.cpp.

◆ save()

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 66 of file serializer.cpp.

Member Data Documentation

◆ version

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 64 of file placement/formats/serializer.hpp.


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