bpp-core
2.2.0
|
Tree Node interface. More...
#include <Bpp/Graph/TNode.h>
Public Member Functions | |
Neighbors | |
virtual const TNode * | getNeighbor (int pos) const =0 |
Get a neighbor of this node in const context. More... | |
virtual TNode * | getNeighbor (int pos)=0 |
Get a neighbor of this node. More... | |
The Clonable interface. | |
TNode * | clone () const =0 |
Create a copy of this object and send a pointer to it. More... | |
Fathers | |
virtual const TNode * | getFather (int pos) const =0 |
Get a particular father in const environment. More... | |
virtual TNode * | getFather (int pos)=0 |
Get a particular father. More... | |
virtual const TNode * | getFather () const =0 |
Get the father in const environment. More... | |
virtual TNode * | getFather ()=0 |
Get the father. More... | |
Sons | |
virtual const TNode * | getSon (int pos) const =0 |
Get a particular son in const environment. More... | |
virtual TNode * | getSon (int pos)=0 |
Get a particular son. More... | |
Operators | |
virtual const TNode * | operator[] (int i) const =0 |
Direct access to a neighbor in const context. More... | |
virtual TNode * | operator[] (int i)=0 |
Direct access to a neighbor. More... | |
Fathers | |
virtual bool | hasFathers () const =0 |
Tell if this node has one or more father nodes. More... | |
virtual int | getNumberOfFathers () const =0 |
Give the number of father nodes for this node. More... | |
Sons | |
virtual bool | hasSons () const =0 |
Tell if this node has one or more son nodes. More... | |
virtual int | getNumberOfSons () const =0 |
Give the number of son nodes for this node. More... | |
Neighbors | |
virtual int | degree () const =0 |
Get the degree i.e. the number of neighbors of this node. More... | |
Tree Node interface.
TNode is an interface for tree nodes (i.e. oriented nodes with only one father). It is aimed to build trees.
|
pure virtual |
Create a copy of this object and send a pointer to it.
Implements bpp::ONode.
Implemented in bpp::BasicTNode.
|
pure virtualinherited |
Get the degree i.e. the number of neighbors of this node.
Implemented in bpp::BasicTNode.
|
pure virtual |
Get a particular father in const environment.
Implements bpp::ONode.
Implemented in bpp::BasicTNode.
|
pure virtual |
|
pure virtual |
Get the father in const environment.
Implemented in bpp::BasicTNode.
|
pure virtual |
Get the father.
Implemented in bpp::BasicTNode.
|
pure virtual |
Get a neighbor of this node in const context.
pos | the position of the neighbor to get. |
Implements bpp::ONode.
Implemented in bpp::BasicTNode.
|
pure virtual |
Get a neighbor of this node.
pos | the position of the neighbor to get. |
Implements bpp::ONode.
Implemented in bpp::BasicTNode.
|
pure virtualinherited |
Give the number of father nodes for this node.
Implemented in bpp::BasicTNode.
|
pure virtualinherited |
Give the number of son nodes for this node.
Implemented in bpp::BasicTNode.
|
pure virtual |
|
pure virtual |
|
pure virtualinherited |
Tell if this node has one or more father nodes.
Implemented in bpp::BasicTNode.
|
pure virtualinherited |
Tell if this node has one or more son nodes.
Implemented in bpp::BasicTNode.
|
pure virtual |
Direct access to a neighbor in const context.
No check is done, you have to ensure that you query an existing neighbor.
i | the position of the neighbor |
Implements bpp::ONode.
Implemented in bpp::BasicTNode.
|
pure virtual |
Direct access to a neighbor.
No check is done, you have to ensure that you query an existing neighbor.
i | the position of the neighbor |
Implements bpp::ONode.
Implemented in bpp::BasicTNode.