Privacy
An open-source, flexible 3D physical simulation framework
mars::PythonInterpreter Class Reference

#include <PythonInterpreter.hpp>

Public Member Functions

 ~PythonInterpreter ()
 
void addToPythonpath (const std::string &path) const
 
shared_ptr< Moduleimport (const std::string &name) const
 
shared_ptr< Modulereload (const std::string &name) const
 
shared_ptr< ListBuilderlistBuilder () const
 

Static Public Member Functions

static const PythonInterpreterinstance ()
 

Private Member Functions

 PythonInterpreter ()
 
 PythonInterpreter (const PythonInterpreter &)
 

Private Attributes

shared_ptr< ModulecurrentModule
 

Detailed Description

Definition at line 51 of file PythonInterpreter.hpp.

Constructor & Destructor Documentation

◆ PythonInterpreter() [1/2]

mars::PythonInterpreter::PythonInterpreter ( )
private

Definition at line 401 of file PythonInterpreter.cpp.

◆ PythonInterpreter() [2/2]

mars::PythonInterpreter::PythonInterpreter ( const PythonInterpreter )
inlineprivate

Definition at line 56 of file PythonInterpreter.hpp.

◆ ~PythonInterpreter()

mars::PythonInterpreter::~PythonInterpreter ( )

Definition at line 408 of file PythonInterpreter.cpp.

Member Function Documentation

◆ addToPythonpath()

void mars::PythonInterpreter::addToPythonpath ( const std::string &  path) const

Definition at line 420 of file PythonInterpreter.cpp.

◆ import()

shared_ptr< Module > mars::PythonInterpreter::import ( const std::string &  name) const

Definition at line 641 of file PythonInterpreter.cpp.

◆ instance()

const PythonInterpreter & mars::PythonInterpreter::instance ( )
static

Definition at line 414 of file PythonInterpreter.cpp.

◆ listBuilder()

shared_ptr< ListBuilder > mars::PythonInterpreter::listBuilder ( ) const

Definition at line 646 of file PythonInterpreter.cpp.

◆ reload()

shared_ptr<Module> mars::PythonInterpreter::reload ( const std::string &  name) const

Member Data Documentation

◆ currentModule

shared_ptr<Module> mars::PythonInterpreter::currentModule
private

Definition at line 53 of file PythonInterpreter.hpp.


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