Psi4
Functions | Variables
export_plugins.cc File Reference
#include "psi4/pybind11.h"
#include "psi4/libplugin/plugin.h"
#include "psi4/libparallel/parallel.h"
#include "psi4/libmints/wavefunction.h"
#include "psi4/libfilesystem/path.h"
#include <string>
#include <vector>

Functions

void py_psi_prepare_options_for_module (const std::string &name)
 
int py_psi_plugin_load (std::string fullpathname)
 
SharedWavefunction py_psi_plugin (std::string fullpathname, SharedWavefunction ref_wfn)
 
void py_psi_plugin_close (std::string fullpathname)
 
void py_psi_plugin_close_all ()
 
void export_plugins (py::module &m)
 

Variables

std::map< std::string,
plugin_info
plugins
 

Function Documentation

void export_plugins ( py::module &  m)
SharedWavefunction py_psi_plugin ( std::string  fullpathname,
SharedWavefunction  ref_wfn 
)

Python interface for calling plugins.

Python:
    plugin("integrals.so")
Parameters
fullpathnameUsed to identity loaded plugin.
Returns
The result from the plugin.
void py_psi_plugin_close ( std::string  fullpathname)

Python interface for closing plugin.

Python:
    plugin_close("integrals.so")
Parameters
fullpathnameUsed to identity loaded plugin.
void py_psi_plugin_close_all ( )

Python interface for closing all plugins.

Python:
    plugin_close_all()
int py_psi_plugin_load ( std::string  fullpathname)

Python interface for loading plugins.

Python:
    plugin_load("integrals.so")
Parameters
fullpathnameFull path and filename of the plugin to load.
Returns
0 if not loaded, 1 if loaded, 2 if already loaded.
void py_psi_prepare_options_for_module ( const std::string &  name)

Variable Documentation

std::map<std::string, plugin_info> plugins