This class represents a full graph with nodes and edges.
More...
#include <otawa/graph/Graph.h>
This class represents a full graph with nodes and edges.
It is not usually used as is : it may be embedded in some other object representing a graph and the Node and Edge classes is redefined to be valued according the requirement of the represented graph.
- Implemented concepts
-
otawa::graph::Graph::~Graph |
( |
void |
| ) |
|
void otawa::graph::Graph::add |
( |
Node * |
node | ) |
|
template<template< class _ > class C>
void otawa::graph::Graph::addAll |
( |
const C< Node * > & |
items | ) |
|
|
inline |
void otawa::graph::Graph::clear |
( |
void |
| ) |
|
bool otawa::graph::Graph::contains |
( |
Node * |
item | ) |
const |
|
inline |
int otawa::graph::Graph::count |
( |
void |
| ) |
const |
|
inline |
int otawa::graph::Graph::inDegree |
( |
Node * |
vertex | ) |
const |
Get the in degree of the given vertex.
- Parameters
-
vertex | Vertex to compute out degree for. |
- Returns
- Out degree of the vertex.
References otawa::cfgio::edge().
int otawa::graph::Graph::indexOf |
( |
Node * |
vertex | ) |
const |
|
inline |
bool otawa::graph::Graph::isEmpty |
( |
void |
| ) |
const |
|
inline |
bool otawa::graph::Graph::isPredecessorOf |
( |
Node * |
pred, |
|
|
Node * |
ref |
|
) |
| const |
Test if the vertex pred is predecessor of the vertex ref.
- Parameters
-
pred | Predecessor vertex. |
ref | Reference vertex. |
- Returns
- True if pred is predecessor, false else.
References otawa::cfgio::edge().
bool otawa::graph::Graph::isSuccessorOf |
( |
Node * |
succ, |
|
|
Node * |
ref |
|
) |
| const |
Test if the vertex succ is successor of the vertex ref.
- Parameters
-
succ | Successor vertex. |
ref | Reference vertex. |
- Returns
- True if succ is successor, false else.
References otawa::cfgio::edge().
otawa::graph::Graph::operator bool |
( |
void |
| ) |
const |
|
inline |
int otawa::graph::Graph::outDegree |
( |
Node * |
vertex | ) |
const |
Get the out degree of the given vertex.
- Parameters
-
vertex | Vertex to compute out degree for. |
- Returns
- Out degree of the vertex.
References otawa::cfgio::edge().
void otawa::graph::Graph::remove |
( |
Node * |
node | ) |
|
void otawa::graph::Graph::remove |
( |
const Iterator & |
iter | ) |
|
|
inline |
template<template< class _ > class C>
void otawa::graph::Graph::removeAll |
( |
const C< Node * > & |
items | ) |
|
|
inline |
The documentation for this class was generated from the following files: