Public Member Functions | Static Public Member Functions | Protected Types | Protected Member Functions | Protected Attributes | Static Private Attributes
g2o::Factory Class Reference

create vertices and edges based on TAGs in, for example, a file More...

#include <factory.h>

List of all members.

Public Member Functions

HyperGraph::HyperGraphElementconstruct (const std::string &tag)
void fillKnownTypes (std::vector< std::string > &types)
bool knowsTag (const std::string &tag)
void printRegisteredTypes (std::ostream &os, bool comment=false)
void registerType (const std::string &tag, AbstractHyperGraphElementCreator *c)
const std::string & tag (HyperGraph::HyperGraphElement *v)
 return the TAG given a vertex

Static Public Member Functions

static void destroy ()
 free the instance
static Factoryinstance ()
 return the instance

Protected Types

typedef std::map< std::string,
AbstractHyperGraphElementCreator * > 
CreatorMap
typedef std::map< std::string,
std::string > 
TagLookup

Protected Member Functions

 Factory ()
 ~Factory ()

Protected Attributes

CreatorMap creator
 look-up map for the existing creators
TagLookup tagLookup
 reverse look-up, class name to tag

Static Private Attributes

static FactoryfactoryInstance = 0

Detailed Description

create vertices and edges based on TAGs in, for example, a file

Definition at line 31 of file factory.h.


Member Typedef Documentation

typedef std::map<std::string, AbstractHyperGraphElementCreator*> g2o::Factory::CreatorMap [protected]

Definition at line 70 of file factory.h.

typedef std::map<std::string, std::string> g2o::Factory::TagLookup [protected]

Definition at line 71 of file factory.h.


Constructor & Destructor Documentation

g2o::Factory::Factory ( ) [protected]

Definition at line 31 of file factory.cpp.

g2o::Factory::~Factory ( ) [protected]

Definition at line 35 of file factory.cpp.


Member Function Documentation

construct a vertex based on its tag

Definition at line 67 of file factory.cpp.

void g2o::Factory::destroy ( ) [static]

free the instance

Definition at line 98 of file factory.cpp.

void g2o::Factory::fillKnownTypes ( std::vector< std::string > &  types)

get a list of all known types

Definition at line 86 of file factory.cpp.

return the instance

Definition at line 41 of file factory.cpp.

bool g2o::Factory::knowsTag ( const std::string &  tag)

return whether the factory knows this tag or not

Definition at line 93 of file factory.cpp.

void g2o::Factory::printRegisteredTypes ( std::ostream &  os,
bool  comment = false 
)

print a list of the known registered types to the given stream

Definition at line 104 of file factory.cpp.

void g2o::Factory::registerType ( const std::string &  tag,
AbstractHyperGraphElementCreator c 
)

register a tag for a specific creator

Definition at line 50 of file factory.cpp.

const std::string & g2o::Factory::tag ( HyperGraph::HyperGraphElement v)

return the TAG given a vertex

Definition at line 77 of file factory.cpp.


Member Data Documentation

look-up map for the existing creators

Definition at line 75 of file factory.h.

Factory * g2o::Factory::factoryInstance = 0 [static, private]

Definition at line 79 of file factory.h.

reverse look-up, class name to tag

Definition at line 76 of file factory.h.


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


re_vision
Author(s): Dorian Galvez-Lopez
autogenerated on Sun Jan 5 2014 11:34:30