41 #ifndef _NODETEMPLATE_H_ 42 #define _NODETEMPLATE_H_ 72 template<
class NodeInfos>
154 std::vector<const NodeTemplate<NodeInfos>*> neighbors2(neighbors.size());
155 for (
size_t i = 0; i < neighbors.size(); i++)
163 std::vector<NodeTemplate<NodeInfos>*> neighbors2(neighbors.size());
164 for (
size_t i = 0; i < neighbors.size(); i++)
197 #endif //_NODETEMPLATE_H_ const NodeTemplate< NodeInfos > * getFather() const
Get the father of this node is there is one.
const NodeTemplate< NodeInfos > * getSon(size_t i) const
virtual void setInfos(const NodeInfos &infos)
Set the information to be associated to this node.
NodeTemplate()
Build a new void NodeTemplate object.
NodeTemplate(const std::string &name)
Build a new NodeTemplate with specified name.
std::vector< Node * > sons_
NodeTemplate< NodeInfos > * removeFather()
Remove the father of this node.
NodeTemplate< NodeInfos > * getSon(size_t i)
std::vector< NodeTemplate< NodeInfos > * > getNeighbors()
Node & operator=(const Node &node)
Assignation operator.
NodeTemplate(int id, const std::string &name)
Build a new NodeTemplate with specified id and name.
virtual NodeInfos & getInfos()
const NodeTemplate< NodeInfos > * operator[](int i) const
std::vector< const Node * > getNeighbors() const
NodeTemplate(const NodeTemplate< NodeInfos > &node)
Copy constructor.
The phylogenetic node class.
NodeTemplate< NodeInfos > * clone() const
NodeTemplate(int id)
Build a new NodeTemplate with specified id.
NodeTemplate(const Node &node)
Copy constructor.
NodeTemplate< NodeInfos > & operator=(const NodeTemplate< NodeInfos > &node)
Assignation operator.
std::vector< const NodeTemplate< NodeInfos > * > getNeighbors() const
NodeTemplate< NodeInfos > * getFather()
Get the father of this node is there is one.
virtual const NodeInfos & getInfos() const
NodeTemplate< NodeInfos > * operator[](int i)