Ponca  fd5150bf9079aabdb82a6f05e419b76111c1f788
Point Cloud Analysis library
Loading...
Searching...
No Matches
Ponca::FactoryEntry< _Name, Type > Struct Template Reference

Factory entry. More...

#include <typelist.h>

+ Collaboration diagram for Ponca::FactoryEntry< _Name, Type >:

Public Types

using type = Type
 

Public Member Functions

 FactoryEntry (size_t i)
 

Public Attributes

const size_t idx
 
Type object
 

Static Public Attributes

static constexpr const char * name = _name.value
 

Detailed Description

template<Ponca::StringLiteral _Name, class Type>
struct Ponca::FactoryEntry< _Name, Type >

Factory entry.

This class stores as compile time constant:

  • A name of the entry (with string)
  • A type, presumably a ComputeObject but this is not mandatory
  • An identifier

Any instance of this class stores an instance of the associated type.

Definition at line 28 of file typelist.h.

Member Typedef Documentation

◆ type

template<Ponca::StringLiteral _Name, class Type >
using Ponca::FactoryEntry< _Name, Type >::type = Type

Definition at line 30 of file typelist.h.

Constructor & Destructor Documentation

◆ FactoryEntry()

template<Ponca::StringLiteral _Name, class Type >
Ponca::FactoryEntry< _Name, Type >::FactoryEntry ( size_t  i)
inline

Definition at line 38 of file typelist.h.

Member Data Documentation

◆ idx

template<Ponca::StringLiteral _Name, class Type >
const size_t Ponca::FactoryEntry< _Name, Type >::idx

Definition at line 45 of file typelist.h.

◆ name

template<Ponca::StringLiteral _Name, class Type >
constexpr const char* Ponca::FactoryEntry< _Name, Type >::name = _name.value
staticconstexpr

Definition at line 36 of file typelist.h.

◆ object

template<Ponca::StringLiteral _Name, class Type >
Type Ponca::FactoryEntry< _Name, Type >::object

Definition at line 46 of file typelist.h.