Nektar++
Public Member Functions | Public Attributes | List of all members
Nektar::LibUtilities::NekFactory< tKey, tBase, tParam >::ModuleEntry Struct Reference

Define a struct to hold the information about a module. More...

#include <NekFactory.hpp>

Public Member Functions

 ModuleEntry (CreatorFunction pFunc, const std::string pDesc)
 

Public Attributes

CreatorFunction m_func
 Function used to create instance of class. More...
 
std::string m_desc
 Description of class for use in listing available classes. More...
 

Detailed Description

template<typename tKey, typename tBase, typename... tParam>
struct Nektar::LibUtilities::NekFactory< tKey, tBase, tParam >::ModuleEntry

Define a struct to hold the information about a module.

Definition at line 115 of file NekFactory.hpp.

Constructor & Destructor Documentation

◆ ModuleEntry()

template<typename tKey , typename tBase , typename... tParam>
Nektar::LibUtilities::NekFactory< tKey, tBase, tParam >::ModuleEntry::ModuleEntry ( CreatorFunction  pFunc,
const std::string  pDesc 
)
inline

Definition at line 117 of file NekFactory.hpp.

118 : m_func(pFunc), m_desc(pDesc)
119 {
120 }
std::string m_desc
Description of class for use in listing available classes.
Definition: NekFactory.hpp:125
CreatorFunction m_func
Function used to create instance of class.
Definition: NekFactory.hpp:123

Member Data Documentation

◆ m_desc

template<typename tKey , typename tBase , typename... tParam>
std::string Nektar::LibUtilities::NekFactory< tKey, tBase, tParam >::ModuleEntry::m_desc

Description of class for use in listing available classes.

Definition at line 125 of file NekFactory.hpp.

◆ m_func

template<typename tKey , typename tBase , typename... tParam>
CreatorFunction Nektar::LibUtilities::NekFactory< tKey, tBase, tParam >::ModuleEntry::m_func

Function used to create instance of class.

Definition at line 123 of file NekFactory.hpp.

Referenced by Nektar::LibUtilities::NekFactory< tKey, tBase, tParam >::CreateInstance().