libgexf  0.1.3
Public Member Functions | Public Attributes | Friends | List of all members
libgexf::GEXF Class Reference

GEXF class, just a container. More...

#include <gexf.h>

Public Member Functions

 GEXF (const GEXF &orig)
 Copy constructor.
 
libgexf::UndirectedGraphgetUndirectedGraph ()
 Get an undirected graph instance. More...
 
libgexf::DirectedGraphgetDirectedGraph ()
 Get a directed graph instance. More...
 
libgexf::DatagetData ()
 Get associated data instance. More...
 
libgexf::MetaDatagetMetaData ()
 Get associated meta data instance. More...
 
void setGraphType (libgexf::t_graph t)
 Change the type of graph. More...
 
libgexf::t_graph getGraphType ()
 Get the type of graph. More...
 
void initGraphMode (const std::string &mode)
 Initialize the graph mode. More...
 
std::string getGraphMode ()
 Get the graph mode. More...
 
bool checkIntegrity ()
 Check the data correctness. More...
 

Public Attributes

libgexf::Graph _graph
 
libgexf::t_graph _type
 
std::string _mode
 
libgexf::Data _data
 
libgexf::MetaData _meta
 

Friends

class MemoryValidator
 
std::ostream & operator<< (std::ostream &os, const GEXF &o)
 

Detailed Description

GEXF class, just a container.

Member Function Documentation

◆ checkIntegrity()

bool libgexf::GEXF::checkIntegrity ( )

Check the data correctness.

  • verify if each node has a label
  • verify if each attvalue has a value or a defaultvalue
Returns
true if it is ok, false otherwise.

◆ getData()

Data & libgexf::GEXF::getData ( )

Get associated data instance.

Returns
graph data

◆ getDirectedGraph()

DirectedGraph & libgexf::GEXF::getDirectedGraph ( )

Get a directed graph instance.

Returns
Directed graph

◆ getGraphMode()

std::string libgexf::GEXF::getGraphMode ( )

Get the graph mode.

Returns
Mode of graph (static or dynamic)

◆ getGraphType()

t_graph libgexf::GEXF::getGraphType ( )

Get the type of graph.

Returns
Type of graph (directed, undirected or mixed)

◆ getMetaData()

MetaData & libgexf::GEXF::getMetaData ( )

Get associated meta data instance.

Returns
graph meta data

◆ getUndirectedGraph()

UndirectedGraph & libgexf::GEXF::getUndirectedGraph ( )

Get an undirected graph instance.

Returns
Undirected graph

◆ initGraphMode()

void libgexf::GEXF::initGraphMode ( const std::string &  mode)

Initialize the graph mode.

Parameters
mode: Mode of graph (static or dynamic)

◆ setGraphType()

void libgexf::GEXF::setGraphType ( libgexf::t_graph  t)

Change the type of graph.

Parameters
t: Type of graph (directed, undirected or mixed)

Friends And Related Function Documentation

◆ MemoryValidator

friend class MemoryValidator
friend

Member Data Documentation

◆ _data

libgexf::Data libgexf::GEXF::_data

Associated data and attributes on nodes and edges

◆ _graph

libgexf::Graph libgexf::GEXF::_graph

Topology structure

◆ _meta

libgexf::MetaData libgexf::GEXF::_meta

Associated meta data

◆ _mode

std::string libgexf::GEXF::_mode

Graph mode

◆ _type

libgexf::t_graph libgexf::GEXF::_type

Default edge type


The documentation for this class was generated from the following files: