bpp-core
2.2.0
|
Oriented Node interface. More...
#include <Bpp/Graph/ONode.h>
Public Member Functions | |
Neighbors | |
virtual const ONode * | getNeighbor (int pos) const =0 |
Get a neighbor of this node in const context. More... | |
virtual ONode * | getNeighbor (int pos)=0 |
Get a neighbor of this node. More... | |
The Clonable interface. | |
ONode * | clone () const =0 |
Create a copy of this object and send a pointer to it. More... | |
Fathers | |
virtual const ONode * | getFather (int pos) const =0 |
Get a particular father in const environment. More... | |
virtual ONode * | getFather (int pos)=0 |
Get a particular father. More... | |
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 const ONode * | getSon (int pos) const =0 |
Get a particular son in const environment. More... | |
virtual ONode * | getSon (int pos)=0 |
Get a particular son. More... | |
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... | |
Operators | |
virtual const ONode * | operator[] (int i) const =0 |
Direct access to a neighbor in const context. More... | |
virtual ONode * | operator[] (int i)=0 |
Direct access to a neighbor. More... | |
Neighbors | |
virtual int | degree () const =0 |
Get the degree i.e. the number of neighbors of this node. More... | |
Oriented Node interface.
ONode is an interface for oriented nodes aimed to build oriented graphs.
|
pure virtual |
Create a copy of this object and send a pointer to it.
Implements bpp::UNode.
Implemented in bpp::BasicTNode, and bpp::TNode.
|
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.
Implemented in bpp::BasicTNode, and bpp::TNode.
|
pure virtual |
Get a particular father.
Implemented in bpp::BasicTNode, and bpp::TNode.
|
pure virtual |
Get a neighbor of this node in const context.
pos | the position of the neighbor to get. |
Implements bpp::UNode.
Implemented in bpp::BasicTNode, and bpp::TNode.
|
pure virtual |
Get a neighbor of this node.
pos | the position of the neighbor to get. |
Implements bpp::UNode.
Implemented in bpp::BasicTNode, and bpp::TNode.
|
pure virtual |
Give the number of father nodes for this node.
Implemented in bpp::BasicTNode.
|
pure virtual |
Give the number of son nodes for this node.
Implemented in bpp::BasicTNode.
|
pure virtual |
Get a particular son in const environment.
Implemented in bpp::BasicTNode, and bpp::TNode.
|
pure virtual |
Get a particular son.
Implemented in bpp::BasicTNode, and bpp::TNode.
|
pure virtual |
Tell if this node has one or more father nodes.
Implemented in bpp::BasicTNode.
|
pure virtual |
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::UNode.
Implemented in bpp::TNode, and 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::UNode.
Implemented in bpp::TNode, and bpp::BasicTNode.