bpp-core
2.2.0
|
Unoriented node interface. More...
#include <Bpp/Graph/UNode.h>
Public Member Functions | |
Neighbors | |
virtual const UNode * | getNeighbor (int pos) const =0 |
Get a neighbor of this node in const context. More... | |
virtual UNode * | getNeighbor (int pos)=0 |
Get a neighbor of this node. More... | |
virtual int | degree () const =0 |
Get the degree i.e. the number of neighbors of this node. More... | |
The Clonable interface. | |
UNode * | clone () const =0 |
Create a copy of this object and send a pointer to it. More... | |
Operators | |
virtual const UNode * | operator[] (int i) const =0 |
Direct access to a neighbor in const context. More... | |
virtual UNode * | operator[] (int i)=0 |
Direct access to a neighbor. More... | |
Unoriented node interface.
UNode is an interface for unoriented nodes aimed to build unoriented graphs.
In these classes we choose to use int for positions rathed than size_t because negative positions are used in some implementations to distinguish between two types of neighbors in operator[].
|
pure virtual |
Create a copy of this object and send a pointer to it.
Implements bpp::Clonable.
Implemented in bpp::BasicTNode, bpp::TNode, and bpp::ONode.
|
pure virtual |
Get the degree i.e. the number of neighbors of this node.
Implemented in bpp::BasicTNode.
|
pure virtual |
Get a neighbor of this node in const context.
pos | the position of the neighbor to get. |
Implemented in bpp::BasicTNode, bpp::TNode, and bpp::ONode.
|
pure virtual |
Get a neighbor of this node.
pos | the position of the neighbor to get. |
Implemented in bpp::BasicTNode, bpp::TNode, and bpp::ONode.
|
pure virtual |
Direct access to a neighbor in const context.
Implemented in bpp::ONode, bpp::TNode, and bpp::BasicTNode.
|
pure virtual |
Direct access to a neighbor.
Implemented in bpp::ONode, bpp::TNode, and bpp::BasicTNode.