Jafar
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Member Functions | Private Member Functions | Private Attributes
jafar::spafgraph::Graph Class Reference

The Graph is the root node containing all nodes. More...


Detailed Description

The Graph is the root node containing all nodes.

Definition at line 17 of file Graph.hpp.

#include <Graph.hpp>

Inheritance diagram for jafar::spafgraph::Graph:
Inheritance graph
[legend]

List of all members.

Public Member Functions

std::string toDot () const
NodecreateNode (spaf::Feature *feature, Node *parent)
 Create a node for a given feature with a given parent.
const std::list< Node * > & nodes () const
NodenodeFor (const spaf::Feature *feature)
void removeNode (Node *n)
 remove node from the graph and delete it.

Private Member Functions

void appendNode (Node *n)
 Add the node to the list of nodes.
std::string edgeToDot (const Edge *edge) const
std::string nodeToDot (const Node *node) const

Private Attributes

Private *const d

Member Function Documentation

Create a node for a given feature with a given parent.

Parameters:
feature
parentparent of the feature, either a spaf::GroupFeature or this Graph
Returns:
the node corresponding to the feature
const std::list<Node*>& jafar::spafgraph::Graph::nodes ( ) const
Returns:
all the nodes of this graph
std::string jafar::spafgraph::Graph::toDot ( ) const
Returns:
a string with the graph ready to be parsed by "dot"

The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated on Wed Oct 15 2014 00:37:51 for Jafar by doxygen 1.7.6.1
LAAS-CNRS