|
Ponca
fd5150bf9079aabdb82a6f05e419b76111c1f788
Point Cloud Analysis library
|
Base class for factory. More...
#include <factory.h>
Inheritance diagram for Ponca::internal::FactoryBase< _FactoryEntries >:
Collaboration diagram for Ponca::internal::FactoryBase< _FactoryEntries >:Public Types | |
| using | FactoryEntries = _FactoryEntries |
| using | FullComputeObjectList = ComputeObjectList< FactoryEntries > |
Static Public Member Functions | |
| template<template< typename > class... Preds> | |
| static decltype(auto) | Filter () |
| Returns a new object that is a filtered version of the current one. | |
| template<StringLiteral... Names> | |
| static decltype(auto) | Filter () |
| Returns a new object that is a filtered version of the current one. | |
| template<StringLiteral Name> | |
| static decltype(auto) | GetMethod () |
| Return an object by it's id. | |
| template<typename Func > | |
| static void | foreach (Func &&fun) |
| static constexpr size_t | size () |
| Return the number of object held within the Factory. | |
| static constexpr decltype(auto) | GetNames () |
| Return the names of the currently held objects. | |
Base class for factory.
This class behaves similarly to ComputeObjectList but do not store any information. It is here to have plain static methods.
| _FactoryEntries | A std::tuple<FactoryEntry> |
| using Ponca::internal::FactoryBase< _FactoryEntries >::FactoryEntries = _FactoryEntries |
| using Ponca::internal::FactoryBase< _FactoryEntries >::FullComputeObjectList = ComputeObjectList<FactoryEntries> |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
Return an object by it's id.
In order for this method to work, it is expected that only one method has the specified id !
This method returns the ComputeObject, not a ComputeObjectList !
| id | The id of the method |
|
inlinestaticconstexpr |
|
inlinestaticconstexpr |