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

#include <genesis/utils/formats/nexus/trees.hpp>

Inherits NexusBlock.

Detailed Description

Definition at line 62 of file trees.hpp.

Public Member Functions

 NexusTrees ()=default
 
 NexusTrees (NexusTrees const &)=default
 
 NexusTrees (NexusTrees &&)=default
 
 ~NexusTrees ()=default
 
void add_tree (std::string name, std::string tree)
 
const_iterator begin () const
 
std::string block_name () const override
 
void clear ()
 
bool empty () const
 
const_iterator end () const
 
void erase_tree (std::string name)
 
bool has_tree (std::string name) const
 
NexusTreesoperator= (NexusTrees const &)=default
 
NexusTreesoperator= (NexusTrees &&)=default
 
size_t size () const
 
void swap (NexusTrees &other)
 
void to_stream (std::ostream &os) const override
 
- Public Member Functions inherited from NexusBlock
 NexusBlock ()=default
 
 NexusBlock (NexusBlock const &)=default
 
 NexusBlock (NexusBlock &&)=default
 
virtual ~NexusBlock ()=default
 
NexusBlockoperator= (NexusBlock const &)=default
 
NexusBlockoperator= (NexusBlock &&)=default
 

Public Types

using const_iterator = container::const_iterator
 
using container = std::vector< Entry >
 

Classes

struct  Entry
 

Constructor & Destructor Documentation

NexusTrees ( )
default
~NexusTrees ( )
default
NexusTrees ( NexusTrees const &  )
default
NexusTrees ( NexusTrees &&  )
default

Member Function Documentation

void add_tree ( std::string  name,
std::string  tree 
)
inline

Definition at line 174 of file trees.hpp.

const_iterator begin ( ) const
inline

Definition at line 158 of file trees.hpp.

std::string block_name ( ) const
inlineoverridevirtual

Implements NexusBlock.

Definition at line 212 of file trees.hpp.

void clear ( )
inline

Definition at line 201 of file trees.hpp.

bool empty ( ) const
inline

Definition at line 124 of file trees.hpp.

const_iterator end ( ) const
inline

Definition at line 163 of file trees.hpp.

void erase_tree ( std::string  name)
inline

Definition at line 191 of file trees.hpp.

bool has_tree ( std::string  name) const
inline

Definition at line 134 of file trees.hpp.

NexusTrees& operator= ( NexusTrees const &  )
default
NexusTrees& operator= ( NexusTrees &&  )
default
size_t size ( ) const
inline

Definition at line 129 of file trees.hpp.

void swap ( NexusTrees other)
inline

Definition at line 96 of file trees.hpp.

void to_stream ( std::ostream &  os) const
inlineoverridevirtual

Implements NexusBlock.

Definition at line 217 of file trees.hpp.

Member Typedef Documentation

using const_iterator = container::const_iterator

Definition at line 79 of file trees.hpp.

using container = std::vector<Entry>

Definition at line 78 of file trees.hpp.


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