blackbox-backend.hh
Go to the documentation of this file.
Backend for a deterministic FlatZinc blackbox function.
Definition blackbox-backend.hh:71
virtual ~BlackBoxBackend(void)
Definition blackbox-backend.hh:73
virtual void run(BlackBoxCall &call)=0
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)
Definition blackbox-backend.hh:75
~BlackBoxExec()
BlackBoxProcessSession & session(void)
std::vector< std::string > args
Definition blackbox-backend.hh:122
BlackBoxExec(const std::string &program, const std::vector< std::string > &args)
std::vector< BlackBoxProcessSession * > sessions
Definition blackbox-backend.hh:124
void run(BlackBoxCall &call) override
void *GECODE_BLACKBOX_CALL * library_fzn_clone(void *)
void *GECODE_BLACKBOX_CALL * library_fzn_init(const char **, size_t)
BlackBoxLibrary(const std::string &name, const std::vector< std::string > &args)
void run(BlackBoxCall &call) override
std::vector< Instance * > instances
Definition blackbox-backend.hh:106
void(GECODE_BLACKBOX_CALL *library_fzn_blackbox)(void *
void * root_instance
Definition blackbox-backend.hh:101
~BlackBoxLibrary()
void(GECODE_BLACKBOX_CALL *library_fzn_free)(void *)
Instance * instance(void)
Platform process session used by the executable blackbox backend.
Definition blackbox-process.hh:28
GECODE_FLATZINC_EXPORT std::string encode_blackbox_request(const BlackBoxCall &call)
Encode one request for the executable backend's line protocol.
GECODE_FLATZINC_EXPORT void decode_blackbox_response(const std::string &response, BlackBoxCall &call)
Decode and validate one response from the executable backend.
Reading instance files described by reader specs.
Gecode toplevel namespace
Inputs and pre-sized output buffers for one backend call.
Definition blackbox-backend.hh:63
const std::vector< int64_t > & int_input
Definition blackbox-backend.hh:64
std::vector< int64_t > & int_output
Definition blackbox-backend.hh:66
const std::vector< double > & float_input
Definition blackbox-backend.hh:65
std::vector< double > & float_output
Definition blackbox-backend.hh:67
