bpp-phyl3  3.0.0
bpp::ModelPath::PathNode Class Reference

A vector<int> where all elements are different and in INCREASING ORDER. So inclusion should be done through dedicated methods. More...

#include <Bpp/Phyl/Likelihood/ModelPath.h>

+ Inheritance diagram for bpp::ModelPath::PathNode:
+ Collaboration diagram for bpp::ModelPath::PathNode:

Public Member Functions

 PathNode ()
 
 PathNode (const PathNode &n)
 
 ~PathNode ()
 
void insertN (const Vuint &vn)
 Insert elements. More...
 
void removeN (const Vuint &vn)
 Remove elements. More...
 
PathNodeoperator= (const Vuint &vn)
 
PathNodeoperator+= (const PathNode &n)
 Cumulates the elements of the given PathNode into this one. More...
 
PathNodeoperator-= (const PathNode &n)
 Remove the elements of the given PathNode from this one. More...
 
bool operator<= (const PathNode &) const
 checks if this PathNode is included in another one. More...
 
bool operator>= (const PathNode &) const
 checks if this PathNode includes another one. More...
 
bool intersects (const PathNode &) const
 checks if this PathNode intersects another one. More...
 
std::string to_string () const
 Output. More...
 

Public Attributes

unsigned int elements
 STL member. More...
 

Detailed Description

A vector<int> where all elements are different and in INCREASING ORDER. So inclusion should be done through dedicated methods.

Definition at line 29 of file ModelPath.h.

Constructor & Destructor Documentation

◆ PathNode() [1/2]

bpp::ModelPath::PathNode::PathNode ( )
inline

Definition at line 32 of file ModelPath.h.

◆ PathNode() [2/2]

bpp::ModelPath::PathNode::PathNode ( const PathNode n)
inline

Definition at line 33 of file ModelPath.h.

◆ ~PathNode()

bpp::ModelPath::PathNode::~PathNode ( )
inline

Definition at line 35 of file ModelPath.h.

Member Function Documentation

◆ insertN()

void ModelPath::PathNode::insertN ( const Vuint vn)

Insert elements.

Definition at line 195 of file ModelPath.cpp.

Referenced by operator+=(), and operator=().

◆ intersects()

bool ModelPath::PathNode::intersects ( const PathNode n) const

checks if this PathNode intersects another one.

Definition at line 240 of file ModelPath.cpp.

◆ operator+=()

PathNode& bpp::ModelPath::PathNode::operator+= ( const PathNode n)
inline

Cumulates the elements of the given PathNode into this one.

Definition at line 63 of file ModelPath.h.

References insertN().

◆ operator-=()

PathNode& bpp::ModelPath::PathNode::operator-= ( const PathNode n)
inline

Remove the elements of the given PathNode from this one.

Definition at line 72 of file ModelPath.h.

References removeN().

◆ operator<=()

bool ModelPath::PathNode::operator<= ( const PathNode n) const

checks if this PathNode is included in another one.

Definition at line 221 of file ModelPath.cpp.

◆ operator=()

PathNode& bpp::ModelPath::PathNode::operator= ( const Vuint vn)
inline

Definition at line 52 of file ModelPath.h.

References insertN().

◆ operator>=()

bool ModelPath::PathNode::operator>= ( const PathNode n) const

checks if this PathNode includes another one.

Definition at line 235 of file ModelPath.cpp.

◆ removeN()

void ModelPath::PathNode::removeN ( const Vuint vn)

Remove elements.

Definition at line 213 of file ModelPath.cpp.

Referenced by operator-=().

◆ to_string()

std::string ModelPath::PathNode::to_string ( ) const

Output.

Definition at line 257 of file ModelPath.cpp.

References bpp::to_string().

Referenced by bpp::PhylogeneticsApplicationTools::printParameters().

Member Data Documentation

◆ elements

unsigned int std::vector< unsigned int >::elements
inherited

STL member.


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