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

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

Detailed Description

Definition at line 54 of file nexus/document.hpp.

Public Member Functions

 NexusDocument ()=default
 
 NexusDocument (NexusDocument &&)=default
 
 ~NexusDocument ()=default
 
const_iterator begin () const
 
const_iterator end () const
 
NexusBlock const * get_block (std::string block_name) const
 
NexusBlockget_block (std::string block_name)
 
bool has_block (std::string block_name) const
 
NexusDocumentoperator= (NexusDocument const &)=default
 
NexusDocumentoperator= (NexusDocument &&)=default
 
NexusBlockset_block (std::unique_ptr< NexusBlock > block)
 

Public Types

using const_iterator = container::const_iterator
 
using container = std::vector< std::unique_ptr< NexusBlock >>
 

Constructor & Destructor Documentation

NexusDocument ( )
default
~NexusDocument ( )
default
NexusDocument ( NexusDocument &&  )
default

Member Function Documentation

const_iterator begin ( ) const
inline

Definition at line 107 of file nexus/document.hpp.

const_iterator end ( ) const
inline

Definition at line 112 of file nexus/document.hpp.

NexusBlock const * get_block ( std::string  block_name) const

Definition at line 45 of file nexus/document.cpp.

NexusBlock * get_block ( std::string  block_name)

Definition at line 56 of file nexus/document.cpp.

bool has_block ( std::string  block_name) const

Definition at line 40 of file nexus/document.cpp.

NexusDocument& operator= ( NexusDocument const &  )
default
NexusDocument& operator= ( NexusDocument &&  )
default
NexusBlock * set_block ( std::unique_ptr< NexusBlock block)

Definition at line 71 of file nexus/document.cpp.

Member Typedef Documentation

using const_iterator = container::const_iterator

Definition at line 76 of file nexus/document.hpp.

using container = std::vector<std::unique_ptr<NexusBlock>>

Definition at line 75 of file nexus/document.hpp.


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