souffle  2.0.2-371-g6315b36
Public Member Functions | Private Attributes
SWIGSouffleProgram Class Reference

Abstract base class for generated Datalog programs. More...

#include <SwigInterface.h>

Collaboration diagram for SWIGSouffleProgram:
Collaboration graph

Public Member Functions

void dumpInputs ()
 Calls the corresponding method souffle::SouffleProgram::dumpInputs in SouffleInterface.h. More...
 
void dumpOutputs ()
 Calls the corresponding method souffle::SouffleProgram::dumpOutputs in SouffleInterface.h. More...
 
void loadAll (const std::string &inputDirectory)
 Calls the corresponding method souffle::SouffleProgram::loadAll in SouffleInterface.h. More...
 
void printAll (const std::string &outputDirectory)
 Calls the corresponding method souffle::SouffleProgram::printAll in SouffleInterface.h. More...
 
void run ()
 Calls the corresponding method souffle::SouffleProgram::run in SouffleInterface.h. More...
 
void runAll (const std::string &inputDirectory, const std::string &outputDirectory)
 Calls the corresponding method souffle::SouffleProgram::runAll in SouffleInterface.h. More...
 
 SWIGSouffleProgram (souffle::SouffleProgram *program)
 
virtual ~SWIGSouffleProgram ()
 

Private Attributes

souffle::SouffleProgramprogram
 pointer to SouffleProgram to invoke functions from SouffleInterface.h More...
 

Detailed Description

Abstract base class for generated Datalog programs.

Definition at line 26 of file SwigInterface.h.

Constructor & Destructor Documentation

◆ SWIGSouffleProgram()

SWIGSouffleProgram::SWIGSouffleProgram ( souffle::SouffleProgram program)
inline

Definition at line 39 of file SwigInterface.h.

42 {

◆ ~SWIGSouffleProgram()

virtual SWIGSouffleProgram::~SWIGSouffleProgram ( )
inlinevirtual

Definition at line 41 of file SwigInterface.h.

42  {
43  program->run();

References program, and souffle::SouffleProgram::run().

Here is the call graph for this function:

Member Function Documentation

◆ dumpInputs()

void SWIGSouffleProgram::dumpInputs ( )
inline

Calls the corresponding method souffle::SouffleProgram::dumpInputs in SouffleInterface.h.

Definition at line 76 of file SwigInterface.h.

77  {

References souffle::SouffleProgram::dumpOutputs(), and program.

Here is the call graph for this function:

◆ dumpOutputs()

void SWIGSouffleProgram::dumpOutputs ( )
inline

Calls the corresponding method souffle::SouffleProgram::dumpOutputs in SouffleInterface.h.

Definition at line 83 of file SwigInterface.h.

◆ loadAll()

void SWIGSouffleProgram::loadAll ( const std::string &  inputDirectory)
inline

Calls the corresponding method souffle::SouffleProgram::loadAll in SouffleInterface.h.

Definition at line 62 of file SwigInterface.h.

63  {
64  program->printAll(outputDirectory);

References souffle::SouffleProgram::printAll(), and program.

Here is the call graph for this function:

◆ printAll()

void SWIGSouffleProgram::printAll ( const std::string &  outputDirectory)
inline

Calls the corresponding method souffle::SouffleProgram::printAll in SouffleInterface.h.

Definition at line 69 of file SwigInterface.h.

70  {

References souffle::SouffleProgram::dumpInputs(), and program.

Here is the call graph for this function:

◆ run()

void SWIGSouffleProgram::run ( )
inline

Calls the corresponding method souffle::SouffleProgram::run in SouffleInterface.h.

Definition at line 48 of file SwigInterface.h.

49  {
50  program->runAll(inputDirectory, outputDirectory);

References program, and souffle::SouffleProgram::runAll().

Here is the call graph for this function:

◆ runAll()

void SWIGSouffleProgram::runAll ( const std::string &  inputDirectory,
const std::string &  outputDirectory 
)
inline

Calls the corresponding method souffle::SouffleProgram::runAll in SouffleInterface.h.

Definition at line 55 of file SwigInterface.h.

56  {
57  program->loadAll(inputDirectory);

References souffle::SouffleProgram::loadAll(), and program.

Here is the call graph for this function:

Field Documentation

◆ program

souffle::SouffleProgram* SWIGSouffleProgram::program
private

pointer to SouffleProgram to invoke functions from SouffleInterface.h

Definition at line 36 of file SwigInterface.h.

Referenced by dumpInputs(), loadAll(), printAll(), run(), runAll(), and ~SWIGSouffleProgram().


The documentation for this class was generated from the following file:
souffle::SouffleProgram::runAll
virtual void runAll(std::string inputDirectory="", std::string outputDirectory="")=0
Execute program, loading inputs and storing outputs as required.
souffle::SouffleProgram::printAll
virtual void printAll(std::string outputDirectory="")=0
Store all output relations.
souffle::SouffleProgram::run
virtual void run()
Execute the souffle program, without any loads or stores.
Definition: SouffleInterface.h:770
souffle::SouffleProgram::dumpOutputs
virtual void dumpOutputs()=0
Output all the output relations in stdout, without generating any files.
souffle::SouffleProgram::dumpInputs
virtual void dumpInputs()=0
Output all the input relations in stdout, without generating any files.
SWIGSouffleProgram::program
souffle::SouffleProgram * program
pointer to SouffleProgram to invoke functions from SouffleInterface.h
Definition: SwigInterface.h:36
souffle::SouffleProgram::loadAll
virtual void loadAll(std::string inputDirectory="")=0
Read all input relations.