Ponca  eb7239a9c07e156fb1edc6faac7fe89e2b256bda
Point Cloud Analysis library
Loading...
Searching...
No Matches
Ponca::MethodProvider< Name > Struct Template Reference

Class to check for if an entry has a corresponding Id. More...

#include <factorylist.h>

Collaboration diagram for Ponca::MethodProvider< Name >:

Classes

struct  pred
 A type that behaves as value. More...

Static Public Attributes

template<typename T>
static constexpr bool value = strequal(Name.value, T::name)

Detailed Description

template<StringLiteral Name>
struct Ponca::MethodProvider< Name >

Class to check for if an entry has a corresponding Id.

Instead of adding more code specialized for this, we create a predicated that indicates if any factory entry matches the given id

Template Parameters
NameThe Name to check for

Definition at line 41 of file factorylist.h.

Member Data Documentation

◆ value

template<StringLiteral Name>
template<typename T>
bool Ponca::MethodProvider< Name >::value = strequal(Name.value, T::name)
staticconstexpr

Definition at line 44 of file factorylist.h.