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