|
A library for working with phylogenetic and population genetic data.
v0.32.0
|
|
Go to the documentation of this file. 1 #ifndef GENESIS_TAXONOMY_TAXON_DATA_H_
2 #define GENESIS_TAXONOMY_TAXON_DATA_H_
107 static std::unique_ptr< BaseTaxonData >
create()
109 return std::unique_ptr< BaseTaxonData >(
new BaseTaxonData() );
115 virtual std::unique_ptr< BaseTaxonData >
clone()
const
117 return std::unique_ptr< BaseTaxonData >(
new BaseTaxonData( *
this ));
125 #endif // include guard
Base class for storing data on Taxa of a Taxonomy.
virtual ~BaseTaxonData()=default
Virtual destructor. Needed for polymorphism.
BaseTaxonData()=default
Protected default constructor. Called from the create() function.
BaseTaxonData & operator=(BaseTaxonData &&)=delete
Deleted move assignment.
static std::unique_ptr< BaseTaxonData > create()
Create a new instance of this class. Use instead of default constructor.
Container namespace for all symbols of genesis in order to keep them separate when used as a library.
virtual std::unique_ptr< BaseTaxonData > clone() const
Polymorphically copy an instance of this class. Use instead of copy constructor.