Graph: Generic attributed relational graphs


GraphFactory Class Reference

Default abstract factory for graphs. More...

#include <graph/graph/gfactory.h>

Inheritance diagram for GraphFactory:
Collaboration diagram for GraphFactory:

Public Types

typedef carto::GenericObject *(* Generator )(const std::string &)
 

Public Member Functions

 GraphFactory ()
 
virtual ~GraphFactory ()
 

Static Public Member Functions

static void registerGenerator (const std::string &syntax, Generator f)
 
static void unregisterGenerator (const std::string &syntax)
 

Protected Member Functions

Factory methods
virtual VertexmakeVertex (const std::string &s)
 Create a Vertex. More...
 
virtual UEdgemakeUEdge (const std::string &s)
 Create an unitialized UEdge - without vertices. More...
 
virtual DEdgemakeDEdge (const std::string &s)
 Create an unitialized DEdge - without vertices. More...
 

Friends

Friends
class Graph
 export makeVertex, makeUEdge and makeDEdge More...
 

Detailed Description

Default abstract factory for graphs.

The Abstract Factory pattern can be found in:

  • Erich Gamma, Richard Helm, Ralph Johnson, John M. Vlissides, Design patterns, pp. 87-95. Addison Wesley, 1995.

Definition at line 71 of file gfactory.h.

Member Typedef Documentation

typedef carto::GenericObject*(* GraphFactory::Generator)(const std::string &)

Definition at line 78 of file gfactory.h.

Constructor & Destructor Documentation

GraphFactory::GraphFactory ( )
virtual GraphFactory::~GraphFactory ( )
virtual

Member Function Documentation

virtual DEdge* GraphFactory::makeDEdge ( const std::string &  s)
protectedvirtual

Create an unitialized DEdge - without vertices.

virtual UEdge* GraphFactory::makeUEdge ( const std::string &  s)
protectedvirtual

Create an unitialized UEdge - without vertices.

virtual Vertex* GraphFactory::makeVertex ( const std::string &  s)
protectedvirtual

Create a Vertex.

static void GraphFactory::registerGenerator ( const std::string &  syntax,
Generator  f 
)
static
static void GraphFactory::unregisterGenerator ( const std::string &  syntax)
static

Friends And Related Function Documentation

friend class Graph
friend

export makeVertex, makeUEdge and makeDEdge

Definition at line 112 of file gfactory.h.


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