waLBerla 7.3
Loading...
Searching...
No Matches
walberla::python_coupling::Manager Class Reference

#include <Manager.h>

Inheritance diagram for walberla::python_coupling::Manager:

Public Types

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

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)
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.
bool initialized_

Friends

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

Member Typedef Documentation

◆ BlockDataToObjectFunction

◆ ExporterFunction

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

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 ( )

◆ IBlock_getData

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

◆ void::init_module_walberla_cpp

void::init_module_walberla_cpp ( )
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:
  • /builds/administration/walberla-website/walberla/src/python_coupling/Manager.h