ExtensionManager.cpp Source File#
ExtensionManager.cpp
Go to the documentation of this file.
12map<string, function<void(ReactionDataDelegator&)>> ExtensionManager::s_ReactionData_linkers = {};
13map<string, function<shared_ptr<ExternalHandle>(shared_ptr<Solution>)>> ExtensionManager::s_Solution_linkers = {};
Base class for exceptions thrown by Cantera classes.
Definition ctexceptions.h:66
static void registerSolutionLinker(const string &wrapperName, function< shared_ptr< ExternalHandle >(shared_ptr< Solution >)> link)
Register a function that can be used to create wrappers for Solution objects in an external language ...
Definition ExtensionManager.cpp:47
static void wrapReactionData(const string &rateName, ReactionDataDelegator &data)
Create an object in an external language that wraps the specified ReactionData object.
Definition ExtensionManager.cpp:16
static map< string, string > s_userTypeToWrapperType
Mapping from user-defined rate types to Solution wrapper types.
Definition ExtensionManager.h:117
static string getSolutionWrapperType(const string &userType)
Get the Solution wrapper type corresponding to the specified user-defined reaction rate type.
Definition ExtensionManager.cpp:53
static void registerReactionDataLinker(const string &rateName, const string &wrapperName, function< void(ReactionDataDelegator &)> link)
Register a function that can be used to create wrappers for ReactionData objects in an external langu...
Definition ExtensionManager.cpp:28
static map< string, function< shared_ptr< ExternalHandle >(shared_ptr< Solution >)> > s_Solution_linkers
Functions for wrapping and linking Solution objects.
Definition ExtensionManager.h:114
static shared_ptr< ExternalHandle > wrapSolution(const string &wrapperType, shared_ptr< Solution > soln)
Create an object in an external language that wraps the specified Solution object.
Definition ExtensionManager.cpp:35
static map< string, function< void(ReactionDataDelegator &)> > s_ReactionData_linkers
Functions for wrapping and linking ReactionData objects.
Definition ExtensionManager.h:110
Delegate methods of the ReactionData class to external functions.
Definition ReactionRateDelegator.h:20
This file contains definitions for utility functions and text for modules, inputfiles and logging,...
Generated by