walberla::python_coupling::Manager Class Reference

#include <Manager.h>

+ Inheritance diagram for walberla::python_coupling::Manager:

Public Types

typedef std::function< void(py::module_ &)> ExporterFunction
 
typedef std::function< py::object(IBlock &, BlockDataID) > BlockDataToObjectFunction
 

Public Member Functions

 ~Manager ()
 
void triggerInitialization ()
 
void addEntryToPythonPath (const std::string &path)
 
void addExporterFunction (const ExporterFunction &f)
 
template<typename... Types>
void addBlockDataConversion ()
 
void exportAll (py::module_ &m)
 

Public Attributes

 WALBERLA_BEFRIEND_SINGLETON
 

Protected Member Functions

void addPath (const std::string &path)
 
friend void ::init_module_walberla_cpp ()
 
py::object pythonObjectFromBlockData (IBlock &block, BlockDataID id)
 
 Manager ()
 

Protected Attributes

std::vector< ExporterFunctionexporterFunctions_
 
std::vector< BlockDataToObjectFunctionblockDataToObjectFunctions_
 
std::vector< std::string > entriesForPythonPath_
 Adding entries to python path is possible after initialization calls to addEntryToPythonPath() are store here and added after initialization. More...
 
bool initialized_
 

Friends

py::object IBlock_getData (py::object, const std::string &)
 

Member Typedef Documentation

◆ BlockDataToObjectFunction

◆ ExporterFunction

typedef std::function<void(py::module_&)> walberla::python_coupling::Manager::ExporterFunction

Constructor & Destructor Documentation

◆ ~Manager()

walberla::python_coupling::Manager::~Manager ( )

◆ Manager()

walberla::python_coupling::Manager::Manager ( )
protected

Member Function Documentation

◆ addBlockDataConversion()

template<typename... Types>
void walberla::python_coupling::Manager::addBlockDataConversion ( )
inline

◆ addEntryToPythonPath()

void walberla::python_coupling::Manager::addEntryToPythonPath ( const std::string &  path)

◆ addExporterFunction()

void walberla::python_coupling::Manager::addExporterFunction ( const ExporterFunction f)
inline

◆ addPath()

void walberla::python_coupling::Manager::addPath ( const std::string &  path)
protected

◆ exportAll()

void walberla::python_coupling::Manager::exportAll ( py::module_ &  m)

◆ pythonObjectFromBlockData()

py::object walberla::python_coupling::Manager::pythonObjectFromBlockData ( IBlock block,
BlockDataID  id 
)
protected

◆ triggerInitialization()

void walberla::python_coupling::Manager::triggerInitialization ( )

◆ void ::init_module_walberla_cpp()

walberla::python_coupling::Manager::void ::init_module_walberla_cpp ( )
protected

Friends And Related Function Documentation

◆ IBlock_getData

py::object IBlock_getData ( py::object  ,
const std::string &   
)
friend

Member Data Documentation

◆ blockDataToObjectFunctions_

std::vector< BlockDataToObjectFunction > walberla::python_coupling::Manager::blockDataToObjectFunctions_
protected

◆ entriesForPythonPath_

std::vector<std::string> walberla::python_coupling::Manager::entriesForPythonPath_
protected

Adding entries to python path is possible after initialization calls to addEntryToPythonPath() are store here and added after initialization.

◆ exporterFunctions_

std::vector< ExporterFunction > walberla::python_coupling::Manager::exporterFunctions_
protected

◆ initialized_

bool walberla::python_coupling::Manager::initialized_
protected

◆ WALBERLA_BEFRIEND_SINGLETON

walberla::python_coupling::Manager::WALBERLA_BEFRIEND_SINGLETON

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