5 #ifndef BPP_PHYL_TREE_NODETEMPLATE_H
6 #define BPP_PHYL_TREE_NODETEMPLATE_H
36 template<
class NodeInfos>
115 std::vector<const NodeTemplate<NodeInfos>*> neighbors2(neighbors.size());
116 for (
size_t i = 0; i < neighbors.size(); i++)
126 std::vector<NodeTemplate<NodeInfos>*> neighbors2(neighbors.size());
127 for (
size_t i = 0; i < neighbors.size(); i++)
NodeTemplate< NodeInfos > * getFather()
Get the father of this node is there is one.
virtual NodeInfos & getInfos()
NodeTemplate< NodeInfos > * clone() const
NodeTemplate< NodeInfos > * getSon(size_t i)
const NodeTemplate< NodeInfos > * operator[](int i) const
std::vector< const NodeTemplate< NodeInfos > * > getNeighbors() const
NodeTemplate(const NodeTemplate< NodeInfos > &node)
Copy constructor.
NodeTemplate(int id)
Build a new NodeTemplate with specified id.
std::vector< NodeTemplate< NodeInfos > * > getNeighbors()
virtual void setInfos(const NodeInfos &infos)
Set the information to be associated to this node.
NodeTemplate< NodeInfos > * operator[](int i)
NodeTemplate< NodeInfos > & operator=(const NodeTemplate< NodeInfos > &node)
Assignation operator.
const NodeTemplate< NodeInfos > * getSon(size_t i) const
NodeTemplate(const std::string &name)
Build a new NodeTemplate with specified name.
NodeTemplate()
Build a new void NodeTemplate object.
NodeTemplate(int id, const std::string &name)
Build a new NodeTemplate with specified id and name.
const NodeTemplate< NodeInfos > * getFather() const
Get the father of this node is there is one.
NodeTemplate(const Node &node)
Copy constructor.
NodeTemplate< NodeInfos > * removeFather()
Remove the father of this node.
virtual const NodeInfos & getInfos() const
The phylogenetic node class.
Node & operator=(const Node &node)
Assignation operator.
std::vector< Node * > sons_
std::vector< const Node * > getNeighbors() const
Defines the basic types of data flow nodes.