PandA-2024.02
Data Structures | Static Public Member Functions | Data Fields | Private Types | Private Member Functions | Static Private Member Functions
Factory< Base, Args > Class Template Reference

#include <Factory.hpp>

Inheritance diagram for Factory< Base, Args >:
Inheritance graph
[legend]

Data Structures

class  Key
 
struct  Registrar
 

Static Public Member Functions

template<class... T>
static refcount< BaseCreate (const std::string &s, T &&... args)
 

Data Fields

friend Base
 

Private Types

using FuncType = refcount< Base >(*)(Args...)
 

Private Member Functions

 Factory ()=default
 

Static Private Member Functions

static auto & Registry ()
 

Detailed Description

template<class Base, class... Args>
class Factory< Base, Args >

Definition at line 56 of file Factory.hpp.

Member Typedef Documentation

◆ FuncType

template<class Base, class... Args>
using Factory< Base, Args >::FuncType = refcount<Base> (*)(Args...)
private

Definition at line 103 of file Factory.hpp.

Constructor & Destructor Documentation

◆ Factory()

template<class Base, class... Args>
Factory< Base, Args >::Factory ( )
privatedefault

Member Function Documentation

◆ Create()

template<class Base, class... Args>
template<class... T>
static refcount<Base> Factory< Base, Args >::Create ( const std::string &  s,
T &&...  args 
)
inlinestatic

Definition at line 60 of file Factory.hpp.

◆ Registry()

template<class Base, class... Args>
static auto& Factory< Base, Args >::Registry ( )
inlinestaticprivate

Definition at line 106 of file Factory.hpp.

Referenced by Factory< ModuleGenerator, const HLS_managerRef &>::Create(), and Factory< Base, Args >::Registrar< T >::RegisterType().

Here is the caller graph for this function:

Field Documentation

◆ Base

template<class Base, class... Args>
friend Factory< Base, Args >::Base

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

Generated on Mon Feb 12 2024 13:03:50 for PandA-2024.02 by doxygen 1.8.13