A library for working with phylogenetic and population genetic data.
v0.32.0
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
 
NexusBlockget_block (std::string block_name)
 
NexusBlock const * get_block (std::string block_name) const
 
bool has_block (std::string block_name) const
 
NexusDocumentoperator= (NexusDocument &&)=default
 
NexusDocumentoperator= (NexusDocument const &)=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() [1/2]

NexusDocument ( )
default

◆ ~NexusDocument()

~NexusDocument ( )
default

◆ NexusDocument() [2/2]

NexusDocument ( NexusDocument &&  )
default

Member Function Documentation

◆ begin()

const_iterator begin ( ) const
inline

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

◆ end()

const_iterator end ( ) const
inline

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

◆ get_block() [1/2]

NexusBlock * get_block ( std::string  block_name)

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

◆ get_block() [2/2]

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

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

◆ has_block()

bool has_block ( std::string  block_name) const

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

◆ operator=() [1/2]

NexusDocument& operator= ( NexusDocument &&  )
default

◆ operator=() [2/2]

NexusDocument& operator= ( NexusDocument const &  )
default

◆ set_block()

NexusBlock * set_block ( std::unique_ptr< NexusBlock block)

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

Member Typedef Documentation

◆ const_iterator

using const_iterator = container::const_iterator

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

◆ container

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: