Generated on for Gecode by doxygen 1.17.0
Gecode::FlatZinc::BlackBoxLibrary Class Reference

Dynamic-library backend owned by one blackbox constraint. More...

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

Public Member Functions

 BlackBoxLibrary (const std::string &name, const std::vector< std::string > &args)
 ~BlackBoxLibrary ()
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

void *GECODE_BLACKBOX_CALLlibrary_fzn_init (const char **, size_t)
void *GECODE_BLACKBOX_CALLlibrary_fzn_clone (void *)
 void (GECODE_BLACKBOX_CALL *library_fzn_blackbox)(void *
 void (GECODE_BLACKBOX_CALL *library_fzn_free)(void *)
Instance * instance (void)

Protected Attributes

voidlibrary
const int64_t size_t
const int64_t const double size_t
const int64_t const double int64_t size_t
const int64_t const double int64_t double size_t
voidroot_instance
Support::Mutex mutex
std::vector< Instance * > instances

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

Dynamic-library backend owned by one blackbox constraint.

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

Constructor & Destructor Documentation

◆ BlackBoxLibrary()

Gecode::FlatZinc::BlackBoxLibrary::BlackBoxLibrary ( const std::string & name,
const std::vector< std::string > & args )

◆ ~BlackBoxLibrary()

Gecode::FlatZinc::BlackBoxLibrary::~BlackBoxLibrary ( )

Member Function Documentation

◆ run() [1/2]

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

◆ library_fzn_init()

void *GECODE_BLACKBOX_CALL * Gecode::FlatZinc::BlackBoxLibrary::library_fzn_init ( const char ** ,
size_t  )
protected

◆ library_fzn_clone()

void *GECODE_BLACKBOX_CALL * Gecode::FlatZinc::BlackBoxLibrary::library_fzn_clone ( void * )
protected

◆ void() [1/2]

Gecode::FlatZinc::BlackBoxLibrary::void ( GECODE_BLACKBOX_CALL * library_fzn_blackbox)
protected

◆ void() [2/2]

Gecode::FlatZinc::BlackBoxLibrary::void ( GECODE_BLACKBOX_CALL * library_fzn_free)
protected

◆ instance()

Instance * Gecode::FlatZinc::BlackBoxLibrary::instance ( 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

◆ library

void* Gecode::FlatZinc::BlackBoxLibrary::library
protected

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

◆ size_t [1/4]

const int64_t Gecode::FlatZinc::BlackBoxLibrary::size_t
protected

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

◆ size_t [2/4]

const int64_t const double Gecode::FlatZinc::BlackBoxLibrary::size_t
protected

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

◆ size_t [3/4]

const int64_t const double int64_t Gecode::FlatZinc::BlackBoxLibrary::size_t
protected

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

◆ size_t [4/4]

const int64_t const double int64_t double Gecode::FlatZinc::BlackBoxLibrary::size_t
protected

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

◆ root_instance

void* Gecode::FlatZinc::BlackBoxLibrary::root_instance
protected

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

◆ mutex

Support::Mutex Gecode::FlatZinc::BlackBoxLibrary::mutex
protected

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

◆ instances

std::vector<Instance*> Gecode::FlatZinc::BlackBoxLibrary::instances
protected

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


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