bpp-phyl3  3.0.0
bpp::NodeEvent Class Reference

#include <Bpp/Phyl/Tree/PhyloNode.h>

+ Inheritance diagram for bpp::NodeEvent:
+ Collaboration diagram for bpp::NodeEvent:

Public Member Functions

 NodeEvent (NodeType type)
 
NodeEventclone () const
 
bool isSpeciation () const
 
bool isMixture () const
 
std::string toString () const
 

Static Public Attributes

static const NodeEvent speciationEvent
 
static const NodeEvent mixtureEvent
 

Private Types

enum class  NodeType { Speciation = 0 , Mixture = 1 }
 

Private Attributes

NodeType nodeType_
 

Detailed Description

Definition at line 23 of file PhyloNode.h.

Member Enumeration Documentation

◆ NodeType

enum bpp::NodeEvent::NodeType
strongprivate
Enumerator
Speciation 
Mixture 

Definition at line 25 of file PhyloNode.h.

Constructor & Destructor Documentation

◆ NodeEvent()

bpp::NodeEvent::NodeEvent ( NodeType  type)
inline

Definition at line 34 of file PhyloNode.h.

References nodeType_.

Referenced by clone().

Member Function Documentation

◆ clone()

NodeEvent* bpp::NodeEvent::clone ( ) const
inlinevirtual

Implements bpp::Clonable.

Definition at line 39 of file PhyloNode.h.

References NodeEvent().

◆ isMixture()

bool bpp::NodeEvent::isMixture ( ) const
inline

Definition at line 42 of file PhyloNode.h.

References Mixture, and nodeType_.

◆ isSpeciation()

bool bpp::NodeEvent::isSpeciation ( ) const
inline

Definition at line 41 of file PhyloNode.h.

References nodeType_, and Speciation.

Referenced by toString().

◆ toString()

std::string bpp::NodeEvent::toString ( ) const
inline

Definition at line 48 of file PhyloNode.h.

References isSpeciation().

Member Data Documentation

◆ mixtureEvent

const NodeEvent NodeEvent::mixtureEvent
static

Definition at line 46 of file PhyloNode.h.

Referenced by bpp::ProcessComputationTree::buildFollowingScenario_().

◆ nodeType_

NodeType bpp::NodeEvent::nodeType_
private

Definition at line 31 of file PhyloNode.h.

Referenced by isMixture(), isSpeciation(), and NodeEvent().

◆ speciationEvent


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