34#ifndef GRAPH_GRAPH_GFACTORY_H
35#define GRAPH_GRAPH_GFACTORY_H
43#include <cartobase/smart/rcobject.h>
127 static std::map<std::string, Generator> & _generators();
virtual DEdge * makeDEdge(const std::string &s)
Create an unitialized DEdge - without vertices.
virtual Vertex * makeVertex(const std::string &s)
Create a Vertex.
static void registerGenerator(const std::string &syntax, Generator f)
static void unregisterGenerator(const std::string &syntax)
virtual UEdge * makeUEdge(const std::string &s)
Create an unitialized UEdge - without vertices.
carto::GenericObject *(* Generator)(const std::string &)
friend class Graph
export makeVertex, makeUEdge and makeDEdge
Vertices are created and managed by Graphs.