clingo
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups
Public Types | Public Member Functions | Static Public Member Functions | Static Public Attributes | List of all members
Gringo::Python Struct Reference

#include <python.hh>

Collaboration diagram for Gringo::Python:
Collaboration graph

Public Types

using NewControlFunc = Control *(*)(int, char const **)
 
using FreeControlFunc = void(*)(Control *)
 

Public Member Functions

 Python ()
 
bool exec (Location const &loc, FWString code)
 
ValVec call (Location const &loc, FWString name, ValVec const &args)
 
bool callable (FWString name)
 
void main (Control &ctl)
 
 ~Python ()
 

Static Public Member Functions

static void initlib (NewControlFunc newControl, FreeControlFunc freeControl)
 

Static Public Attributes

static std::unique_ptr
< PythonImpl
impl = nullptr
 

Member Typedef Documentation

using Gringo::Python::NewControlFunc = Control* (*)(int, char const **)

Constructor & Destructor Documentation

Gringo::Python::Python ( )
default
Gringo::Python::~Python ( )
default

Member Function Documentation

ValVec Gringo::Python::call ( Location const &  loc,
FWString  name,
ValVec const &  args 
)
bool Gringo::Python::callable ( FWString  name)
bool Gringo::Python::exec ( Location const &  loc,
FWString  code 
)
void Gringo::Python::initlib ( NewControlFunc  newControl,
FreeControlFunc  freeControl 
)
static
void Gringo::Python::main ( Control ctl)

Member Data Documentation

std::unique_ptr< PythonImpl > Gringo::Python::impl = nullptr
static

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