Geogram  Version 1.9.1-rc
A programming library of geometric algorithms
GEO::FactoryCreator1< Type, Param1 > Struct Template Reference

Factory creator with one argument. More...

#include <geogram/basic/factory.h>

Public Types

typedef Type *(* CreatorType) (const Param1 &)
 Type of the creation function.
 

Static Public Member Functions

template<class ConcreteType >
static Type * create (const Param1 &param1)
 Creation function. More...
 

Detailed Description

template<class Type, class Param1>
struct GEO::FactoryCreator1< Type, Param1 >

Factory creator with one argument.

This defines the function to create objects with one argument in the constructor.

Template Parameters
Typebase type of the created objects
Param1type of the constructor argument

Definition at line 320 of file factory.h.

Member Function Documentation

◆ create()

template<class Type , class Param1 >
template<class ConcreteType >
static Type* GEO::FactoryCreator1< Type, Param1 >::create ( const Param1 &  param1)
inlinestatic

Creation function.

Template Parameters
ConcreteTypeactual type of the object to create.

Definition at line 331 of file factory.h.


The documentation for this struct was generated from the following file: