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

#include <genesis/tree/drawing/layout_tree.hpp>

Inherits DefaultNodeData.

Inherited by CircularNodeData, and RectangularNodeData.

Detailed Description

Data class for LayoutTreeNodes.

It is derived from tree::DefaultNodeData, so that it already contains a name field.

Definition at line 80 of file layout_tree.hpp.

Public Member Functions

 LayoutNodeData (LayoutNodeData &&)=delete
 
virtual ~LayoutNodeData ()=default
 
virtual std::unique_ptr
< BaseNodeData
clone () const override
 Polymorphically copy an instance of this class. Use instead of copy constructor. More...
 
LayoutNodeDataoperator= (LayoutNodeData &&)=delete
 
virtual std::unique_ptr
< BaseNodeData
recreate () 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 DefaultNodeData
 DefaultNodeData (DefaultNodeData &&)=delete
 
virtual ~DefaultNodeData ()=default
 
DefaultNodeDataoperator= (DefaultNodeData &&)=delete
 
- Public Member Functions inherited from BaseNodeData
 BaseNodeData (BaseNodeData &&)=delete
 Deleted move constructor. More...
 
virtual ~BaseNodeData ()=default
 Virtual destructor. Needed for polymorphism. More...
 
BaseNodeDataoperator= (BaseNodeData &&)=delete
 Deleted move assignment. More...
 

Static Public Member Functions

static std::unique_ptr
< LayoutNodeData
create ()
 
- Static Public Member Functions inherited from DefaultNodeData
static std::unique_ptr
< DefaultNodeData
create ()
 
- Static Public Member Functions inherited from BaseNodeData
static std::unique_ptr
< BaseNodeData
create ()
 Create a new instance of this class. Use instead of default constructor. More...
 

Public Attributes

utils::SvgGroup shape
 
- Public Attributes inherited from DefaultNodeData
std::string name
 Name of the node. More...
 

Protected Member Functions

 LayoutNodeData ()=default
 
 LayoutNodeData (LayoutNodeData const &)=default
 
LayoutNodeDataoperator= (LayoutNodeData const &)=default
 
- Protected Member Functions inherited from DefaultNodeData
 DefaultNodeData ()=default
 
 DefaultNodeData (DefaultNodeData const &)=default
 
DefaultNodeDataoperator= (DefaultNodeData const &)=default
 
- Protected Member Functions inherited from BaseNodeData
 BaseNodeData ()=default
 Protected default constructor. Called from the create() function. More...
 
 BaseNodeData (BaseNodeData const &)=default
 Protected copy constructor. Called from the clone() function. More...
 
BaseNodeDataoperator= (BaseNodeData const &)=default
 Protected copy assignment. Not used right now. More...
 

Constructor & Destructor Documentation

virtual ~LayoutNodeData ( )
virtualdefault
LayoutNodeData ( LayoutNodeData &&  )
delete
LayoutNodeData ( )
protecteddefault
LayoutNodeData ( LayoutNodeData const &  )
protecteddefault

Member Function Documentation

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

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

Reimplemented from DefaultNodeData.

Reimplemented in CircularNodeData, and RectangularNodeData.

Definition at line 114 of file layout_tree.hpp.

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

Definition at line 104 of file layout_tree.hpp.

LayoutNodeData& operator= ( LayoutNodeData &&  )
delete
LayoutNodeData& operator= ( LayoutNodeData const &  )
protecteddefault
virtual std::unique_ptr< BaseNodeData > recreate ( ) const
inlineoverridevirtual

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

Reimplemented from DefaultNodeData.

Reimplemented in CircularNodeData, and RectangularNodeData.

Definition at line 109 of file layout_tree.hpp.

Member Data Documentation

Definition at line 125 of file layout_tree.hpp.


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