SFCGAL  2.2.0
Public Types | Public Member Functions | Static Public Member Functions | List of all members
SFCGAL::tools::Registry Class Reference

Registry for dynamic information about SFCGAL library. More...

#include <Registry.h>

Public Types

typedef std::vector< Geometry * >::iterator prototype_iterator
 
typedef std::vector< Geometry * >::const_iterator const_prototype_iterator
 

Public Member Functions

 ~Registry ()
 destructor More...
 
void addPrototype (const Geometry &g)
 Register a new Geometry type. More...
 
std::vector< std::string > getGeometryTypes () const
 returns the list of the geometry types More...
 
Geometry * newGeometryByTypeName (const std::string &geometryTypeName) const
 returns a new instance of the given geometryTypeName More...
 
Geometry * newGeometryByTypeId (int typeId) const
 returns a new instance of the given geometryType More...
 

Static Public Member Functions

static Registryinstance ()
 returns the instance of the registry More...
 

Detailed Description

Registry for dynamic information about SFCGAL library.

Member Typedef Documentation

typedef std::vector<Geometry *>::const_iterator SFCGAL::tools::Registry::const_prototype_iterator
typedef std::vector<Geometry *>::iterator SFCGAL::tools::Registry::prototype_iterator

Constructor & Destructor Documentation

SFCGAL::tools::Registry::~Registry ( )

destructor

Member Function Documentation

void SFCGAL::tools::Registry::addPrototype ( const Geometry &  g)

Register a new Geometry type.

auto SFCGAL::tools::Registry::getGeometryTypes ( ) const

returns the list of the geometry types

auto SFCGAL::tools::Registry::instance ( )
static

returns the instance of the registry

auto SFCGAL::tools::Registry::newGeometryByTypeId ( int  typeId) const

returns a new instance of the given geometryType

auto SFCGAL::tools::Registry::newGeometryByTypeName ( const std::string &  geometryTypeName) const

returns a new instance of the given geometryTypeName