Registry for dynamic information about SFCGAL library.
More...
#include <Registry.h>
Registry for dynamic information about SFCGAL library.
Const iterator type for prototypes.
Iterator type for prototypes.
| SFCGAL::tools::Registry::~Registry |
( |
| ) |
|
|
default |
| SFCGAL::tools::Registry::Registry |
( |
const Registry & |
| ) |
|
|
delete |
| void SFCGAL::tools::Registry::addPrototype |
( |
const Geometry & |
g | ) |
|
Register a new Geometry type.
- Parameters
-
| g | The geometry prototype to register |
Returns a mutable iterator to the beginning of the registry collection.
- Returns
- prototype_iterator Iterator to the first element.
Returns a const iterator to the beginning of the registry collection.
- Returns
- const_prototype_iterator Const iterator to the first element.
Returns a mutable iterator to the end of the registry collection.
- Returns
- prototype_iterator Iterator pointing past the last element.
Returns a const iterator to the end of the registry collection.
- Returns
- const_prototype_iterator Const iterator pointing past the last element.
| auto SFCGAL::tools::Registry::getGeometryTypes |
( |
| ) |
const |
Returns the list of the geometry types.
- Returns
- Vector of geometry type names
| auto SFCGAL::tools::Registry::instance |
( |
| ) |
|
|
static |
Returns the instance of the registry.
- Returns
- Reference to the singleton registry instance
| auto SFCGAL::tools::Registry::newGeometryByTypeId |
( |
int |
typeId | ) |
const -> std::unique_ptr<Geometry> |
Returns a new instance of the given geometryType.
- Parameters
-
| typeId | The geometry type ID |
- Returns
- Pointer to new geometry instance
| auto SFCGAL::tools::Registry::newGeometryByTypeName |
( |
const std::string & |
geometryTypeName | ) |
const -> std::unique_ptr<Geometry> |
Returns a new instance of the given geometryTypeName.
- Parameters
-
| geometryTypeName | The name of the geometry type |
- Returns
- std::unique_ptr to new geometry instance
| auto SFCGAL::tools::Registry::operator= |
( |
const Registry & |
| ) |
-> Registry &=delete |
|
delete |