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

#include <genesis/tree/attribute_tree/tree.hpp>

Inherits CommonEdgeData.

Detailed Description

Data class for AttributeTreeEdges.

See AttributeTree for more information.

Definition at line 151 of file tree/attribute_tree/tree.hpp.

Public Member Functions

 AttributeTreeEdgeData (AttributeTreeEdgeData &&)=delete
 
virtual ~AttributeTreeEdgeData () override=default
 
virtual std::unique_ptr< BaseEdgeDataclone () const override
 Polymorphically copy an instance of this class. Use instead of copy constructor. More...
 
AttributeTreeEdgeDataoperator= (AttributeTreeEdgeData &&)=delete
 
virtual std::unique_ptr< BaseEdgeDatarecreate () const override
 Polymorphically create a default-constructed instance of this class with the same derived type as it was called on. More...
 
- Public Member Functions inherited from CommonEdgeData
 CommonEdgeData (CommonEdgeData &&)=delete
 
virtual ~CommonEdgeData () override=default
 
CommonEdgeDataoperator= (CommonEdgeData &&)=delete
 
- Public Member Functions inherited from BaseEdgeData
 BaseEdgeData (BaseEdgeData &&)=delete
 Deleted move constructor. More...
 
virtual ~BaseEdgeData ()=default
 Virtual destructor. Needed for polymorphism. More...
 
BaseEdgeDataoperator= (BaseEdgeData &&)=delete
 Deleted move assignment. More...
 

Static Public Member Functions

static std::unique_ptr< AttributeTreeEdgeDatacreate ()
 
- Static Public Member Functions inherited from CommonEdgeData
static std::unique_ptr< CommonEdgeDatacreate ()
 
- Static Public Member Functions inherited from BaseEdgeData
static std::unique_ptr< BaseEdgeDatacreate ()
 Create a new instance of this class. Use instead of default constructor. More...
 

Public Attributes

AttributeTreeMap attributes
 List of attributes stored on this edge. More...
 
- Public Attributes inherited from CommonEdgeData
double branch_length = 0.0
 Branch length of the edge. More...
 

Protected Member Functions

 AttributeTreeEdgeData ()=default
 
 AttributeTreeEdgeData (AttributeTreeEdgeData const &)=default
 
AttributeTreeEdgeDataoperator= (AttributeTreeEdgeData const &)=default
 
- Protected Member Functions inherited from CommonEdgeData
 CommonEdgeData ()=default
 
 CommonEdgeData (CommonEdgeData const &)=default
 
CommonEdgeDataoperator= (CommonEdgeData const &)=default
 
- Protected Member Functions inherited from BaseEdgeData
 BaseEdgeData ()=default
 Protected default constructor. Called from the create() function. More...
 
 BaseEdgeData (BaseEdgeData const &)=default
 Protected copy constructor. Called from the clone() function. More...
 
BaseEdgeDataoperator= (BaseEdgeData const &)=default
 Protected copy assignment. Not used right now. More...
 

Constructor & Destructor Documentation

◆ ~AttributeTreeEdgeData()

virtual ~AttributeTreeEdgeData ( )
overridevirtualdefault

◆ AttributeTreeEdgeData() [1/3]

◆ AttributeTreeEdgeData() [2/3]

AttributeTreeEdgeData ( )
protecteddefault

◆ AttributeTreeEdgeData() [3/3]

AttributeTreeEdgeData ( AttributeTreeEdgeData const &  )
protecteddefault

Member Function Documentation

◆ clone()

virtual std::unique_ptr< BaseEdgeData > clone ( ) const
inlineoverridevirtual

Polymorphically copy an instance of this class. Use instead of copy constructor.

Reimplemented from CommonEdgeData.

Definition at line 185 of file tree/attribute_tree/tree.hpp.

◆ create()

static std::unique_ptr< AttributeTreeEdgeData > create ( )
inlinestatic

Definition at line 175 of file tree/attribute_tree/tree.hpp.

◆ operator=() [1/2]

AttributeTreeEdgeData& operator= ( AttributeTreeEdgeData &&  )
delete

◆ operator=() [2/2]

AttributeTreeEdgeData& operator= ( AttributeTreeEdgeData const &  )
protecteddefault

◆ recreate()

virtual std::unique_ptr< BaseEdgeData > recreate ( ) const
inlineoverridevirtual

Polymorphically create a default-constructed instance of this class with the same derived type as it was called on.

Reimplemented from CommonEdgeData.

Definition at line 180 of file tree/attribute_tree/tree.hpp.

Member Data Documentation

◆ attributes

AttributeTreeMap attributes

List of attributes stored on this edge.

Definition at line 197 of file tree/attribute_tree/tree.hpp.


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