Generated on for Gecode by doxygen 1.17.0

Persistent-process backend shared by equal executable configurations. More...

#include <gecode/flatzinc/blackbox-backend.hh>

Public Member Functions

 BlackBoxExec (const std::string &program, const std::vector< std::string > &args)
 ~BlackBoxExec ()
void run (BlackBoxCall &call) override
void run (const std::vector< int64_t > &int_input, const std::vector< double > &float_input, std::vector< int64_t > &int_output, std::vector< double > &float_output)
Public Member Functions inherited from Gecode::FlatZinc::BlackBoxBackend
virtual ~BlackBoxBackend (void)
void run (const std::vector< int64_t > &int_input, const std::vector< double > &float_input, std::vector< int64_t > &int_output, std::vector< double > &float_output)
Public Member Functions inherited from Gecode::SharedHandle::Object
 Object (void)
 Initialize.
virtual ~Object (void)
 Delete shared object.

Protected Member Functions

BlackBoxProcessSessionsession (void)

Protected Attributes

std::string program
std::vector< std::string > args
Support::Mutex mutex
std::vector< BlackBoxProcessSession * > sessions

Additional Inherited Members

Static Public Member Functions inherited from Gecode::HeapAllocated
static void * operator new (size_t s)
 Memory management.
static void operator delete (void *p)
 Free memory allocated from heap.

Detailed Description

Persistent-process backend shared by equal executable configurations.

Definition at line 112 of file blackbox-backend.hh.

Constructor & Destructor Documentation

◆ BlackBoxExec()

Gecode::FlatZinc::BlackBoxExec::BlackBoxExec ( const std::string & program,
const std::vector< std::string > & args )

◆ ~BlackBoxExec()

Gecode::FlatZinc::BlackBoxExec::~BlackBoxExec ( )

Member Function Documentation

◆ run() [1/2]

void Gecode::FlatZinc::BlackBoxExec::run ( BlackBoxCall & call)
overridevirtual

◆ session()

BlackBoxProcessSession & Gecode::FlatZinc::BlackBoxExec::session ( void )
protected

◆ run() [2/2]

void Gecode::FlatZinc::BlackBoxBackend::run ( const std::vector< int64_t > & int_input,
const std::vector< double > & float_input,
std::vector< int64_t > & int_output,
std::vector< double > & float_output )
inline

Definition at line 75 of file blackbox-backend.hh.

Member Data Documentation

◆ program

std::string Gecode::FlatZinc::BlackBoxExec::program
protected

Definition at line 121 of file blackbox-backend.hh.

◆ args

std::vector<std::string> Gecode::FlatZinc::BlackBoxExec::args
protected

Definition at line 122 of file blackbox-backend.hh.

◆ mutex

Support::Mutex Gecode::FlatZinc::BlackBoxExec::mutex
protected

Definition at line 123 of file blackbox-backend.hh.

◆ sessions

std::vector<BlackBoxProcessSession*> Gecode::FlatZinc::BlackBoxExec::sessions
protected

Definition at line 124 of file blackbox-backend.hh.


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