|
| 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.
|
| |
| static constexpr size_t | size () |
| | Return the number of object held within the object.
|
| |
| static constexpr decltype(auto) | GetNames () |
| | Return the names of the currently held objects.
|
| |
template<typename _FactoryEntries>
struct Ponca::internal::ComputeObjectList< _FactoryEntries >
List of compute object that can be iterated over.
Unlike a Factory, this object has non static methods and stores a copy of object.
- Template Parameters
-
Definition at line 24 of file factory.h.
template<typename _FactoryEntries >
template<typename Func >
Applies a function to each entry of the list.
This is expected to be a template function. Example usage is: ComputeObjectList.foreach([&](auto& x) { // Code here should be valid for all possible // types !
// If you know the type, you may run specialized code using CurrentType = std::decay_t<decltype(x)>; if constexpr (std::is_same_v<CurrentType, TheExpectedType>) { // The code goes here. } });
- Template Parameters
-
| Func | The function to apply to each element |
Definition at line 99 of file factory.h.