OR-Tools  9.2
SwigDirector_Constraint

Detailed Description

Definition at line 77 of file constraint_solver_csharp_wrap.h.

Public Types

typedef char *(SWIGSTDCALLSWIG_Callback0_t) ()
 
typedef char *(SWIGSTDCALLSWIG_Callback1_t) ()
 
typedef char *(SWIGSTDCALLSWIG_Callback2_t) ()
 
typedef void(SWIGSTDCALLSWIG_Callback3_t) ()
 
typedef void(SWIGSTDCALLSWIG_Callback4_t) ()
 

Public Member Functions

 SwigDirector_Constraint (operations_research::Solver *const solver)
 
virtual ~SwigDirector_Constraint ()
 
virtual std::string DebugString () const
 
virtual std::string name () const
 Object naming. More...
 
virtual std::string BaseName () const
 Returns a base name for automatic naming. More...
 
virtual void Post ()
 This method is called when the constraint is processed by the solver. More...
 
virtual void InitialPropagate ()
 This method performs the initial propagation of the constraint. More...
 
void swig_connect_director (SWIG_Callback0_t callbackToString, SWIG_Callback1_t callbackName, SWIG_Callback2_t callbackBaseName, SWIG_Callback3_t callbackPost, SWIG_Callback4_t callbackInitialPropagateWrapper)
 
 SwigDirector_Constraint (PyObject *self, operations_research::Solver *const solver)
 
virtual ~SwigDirector_Constraint ()
 
virtual std::string DebugString () const
 
virtual std::string name () const
 Object naming. More...
 
virtual void Post ()
 This method is called when the constraint is processed by the solver. More...
 
virtual void InitialPropagate ()
 This method performs the initial propagation of the constraint. More...
 
virtual void Accept (operations_research::ModelVisitor *const visitor) const
 Accepts the given visitor. More...
 
virtual operations_research::IntVarVar ()
 Creates a Boolean variable representing the status of the constraint (false = constraint is violated, true = constraint is satisfied). More...
 
bool swig_get_inner (const char *swig_protected_method_name) const
 
void swig_set_inner (const char *swig_protected_method_name, bool swig_val) const
 
void PostAndPropagate ()
 Calls Post and then Propagate to initialize the constraints. More...
 
bool IsCastConstraint () const
 Is the constraint created by a cast from expression to integer variable? More...
 
Solver * solver () const
 
void FreezeQueue ()
 This method freezes the propagation queue. More...
 
void UnfreezeQueue ()
 This method unfreezes the propagation queue. More...
 
void EnqueueDelayedDemon (Demon *const d)
 This method pushes the demon onto the propagation queue. More...
 
void EnqueueVar (Demon *const d)
 
void ExecuteAll (const SimpleRevFIFO< Demon * > &demons)
 
void EnqueueAll (const SimpleRevFIFO< Demon * > &demons)
 
void set_action_on_fail (Solver::Action a)
 
void reset_action_on_fail ()
 This method clears the failure callback. More...
 
void set_variable_to_clean_on_fail (IntVar *v)
 Shortcut for variable cleaner. More...
 
void set_name (const std::string &name)
 
bool HasName () const
 Returns whether the object has been named or not. More...
 
bool swig_set_self (JNIEnv *jenv, jobject jself, bool mem_own, bool weak_global)
 
bool swig_set_self (JNIEnv *jenv, jobject jself, bool mem_own, bool weak_global)
 
jobject swig_get_self (JNIEnv *jenv) const
 
PyObject * swig_get_self () const
 
jobject swig_get_self (JNIEnv *jenv) const
 
PyObject * swig_get_self () const
 
void swig_java_change_ownership (JNIEnv *jenv, jobject jself, bool take_or_release)
 
void swig_java_change_ownership (JNIEnv *jenv, jobject jself, bool take_or_release)
 
void swig_disown () const
 
void swig_disown () const
 
void swig_incref () const
 
void swig_incref () const
 
template<typename Type >
void swig_acquire_ownership_array (Type *vptr) const
 
template<typename Type >
void swig_acquire_ownership_array (Type *vptr) const
 
template<typename Type >
void swig_acquire_ownership (Type *vptr) const
 
template<typename Type >
void swig_acquire_ownership (Type *vptr) const
 
void swig_acquire_ownership_obj (void *vptr, int own) const
 
void swig_acquire_ownership_obj (void *vptr, int own) const
 
int swig_release_ownership (void *vptr) const
 
int swig_release_ownership (void *vptr) const
 

Static Public Member Functions

template<typename Type >
static PyObject * swig_pyobj_disown (PyObject *pyobj, PyObject *SWIGUNUSEDPARM(args))
 
template<typename Type >
static PyObject * swig_pyobj_disown (PyObject *pyobj, PyObject *SWIGUNUSEDPARM(args))
 

Protected Member Functions

void swig_disconnect_director_self (const char *disconn_method)
 
void swig_disconnect_director_self (const char *disconn_method)
 

Protected Attributes

JObjectWrapper swig_self_
 

Member Typedef Documentation

◆ SWIG_Callback0_t

typedef char *(SWIGSTDCALL * SWIG_Callback0_t) ()

Definition at line 88 of file constraint_solver_csharp_wrap.h.

◆ SWIG_Callback1_t

typedef char *(SWIGSTDCALL * SWIG_Callback1_t) ()

Definition at line 89 of file constraint_solver_csharp_wrap.h.

◆ SWIG_Callback2_t

typedef char *(SWIGSTDCALL * SWIG_Callback2_t) ()

Definition at line 90 of file constraint_solver_csharp_wrap.h.

◆ SWIG_Callback3_t

typedef void(SWIGSTDCALL * SWIG_Callback3_t) ()

Definition at line 91 of file constraint_solver_csharp_wrap.h.

◆ SWIG_Callback4_t

typedef void(SWIGSTDCALL * SWIG_Callback4_t) ()

Definition at line 92 of file constraint_solver_csharp_wrap.h.

Constructor & Destructor Documentation

◆ SwigDirector_Constraint() [1/2]

◆ ~SwigDirector_Constraint() [1/2]

Definition at line 2201 of file constraint_solver_csharp_wrap.cc.

◆ SwigDirector_Constraint() [2/2]

SwigDirector_Constraint ( PyObject *  self,
operations_research::Solver *const  solver 
)

Definition at line 5039 of file constraint_solver_python_wrap.cc.

◆ ~SwigDirector_Constraint() [2/2]

virtual ~SwigDirector_Constraint ( )
virtual

Member Function Documentation

◆ Accept()

void Accept ( operations_research::ModelVisitor *const  visitor) const
virtual

Accepts the given visitor.

Reimplemented from Constraint.

Definition at line 5167 of file constraint_solver_python_wrap.cc.

◆ BaseName()

std::string BaseName ( ) const
virtual

Returns a base name for automatic naming.

Reimplemented from PropagationBaseObject.

Definition at line 2240 of file constraint_solver_csharp_wrap.cc.

◆ DebugString() [1/2]

std::string DebugString ( ) const
virtual

Reimplemented from Constraint.

Definition at line 2206 of file constraint_solver_csharp_wrap.cc.

◆ DebugString() [2/2]

virtual std::string DebugString ( ) const
virtual

Reimplemented from Constraint.

◆ EnqueueAll()

void EnqueueAll ( const SimpleRevFIFO< Demon * > &  demons)
inherited

Definition at line 2527 of file constraint_solver.cc.

◆ EnqueueDelayedDemon()

void EnqueueDelayedDemon ( Demon *const  d)
inlineinherited

This method pushes the demon onto the propagation queue.

It will be processed directly if the queue is empty. It will be enqueued according to its priority otherwise.

Definition at line 3209 of file constraint_solver.h.

◆ EnqueueVar()

void EnqueueVar ( Demon *const  d)
inlineinherited

Definition at line 3210 of file constraint_solver.h.

◆ ExecuteAll()

void ExecuteAll ( const SimpleRevFIFO< Demon * > &  demons)
inherited

Definition at line 2523 of file constraint_solver.cc.

◆ FreezeQueue()

void FreezeQueue ( )
inlineinherited

This method freezes the propagation queue.

It is useful when you need to apply multiple modifications at once.

Definition at line 3200 of file constraint_solver.h.

◆ HasName()

bool HasName ( ) const
inherited

Returns whether the object has been named or not.

Definition at line 2519 of file constraint_solver.cc.

◆ InitialPropagate() [1/2]

void InitialPropagate ( )
virtual

This method performs the initial propagation of the constraint.

It is called just after the post.

Implements Constraint.

Definition at line 2266 of file constraint_solver_csharp_wrap.cc.

◆ InitialPropagate() [2/2]

virtual void InitialPropagate ( )
virtual

This method performs the initial propagation of the constraint.

It is called just after the post.

Implements Constraint.

◆ IsCastConstraint()

bool IsCastConstraint ( ) const
inherited

Is the constraint created by a cast from expression to integer variable?

Definition at line 3300 of file constraint_solver.cc.

◆ name() [1/2]

std::string name ( ) const
virtual

Object naming.

Reimplemented from PropagationBaseObject.

Definition at line 2223 of file constraint_solver_csharp_wrap.cc.

◆ name() [2/2]

virtual std::string name ( ) const
virtual

Object naming.

Reimplemented from PropagationBaseObject.

◆ Post() [1/2]

void Post ( )
virtual

This method is called when the constraint is processed by the solver.

Its main usage is to attach demons to variables.

Implements Constraint.

Definition at line 2257 of file constraint_solver_csharp_wrap.cc.

◆ Post() [2/2]

virtual void Post ( )
virtual

This method is called when the constraint is processed by the solver.

Its main usage is to attach demons to variables.

Implements Constraint.

◆ PostAndPropagate()

void PostAndPropagate ( )
inherited

Calls Post and then Propagate to initialize the constraints.

This is usually done in the root node.

Definition at line 3286 of file constraint_solver.cc.

◆ reset_action_on_fail()

void reset_action_on_fail ( )
inlineinherited

This method clears the failure callback.

Definition at line 3223 of file constraint_solver.h.

◆ set_action_on_fail()

void set_action_on_fail ( Solver::Action  a)
inlineinherited

Definition at line 3217 of file constraint_solver.h.

◆ set_name()

void set_name ( const std::string &  name)
inherited

Definition at line 2515 of file constraint_solver.cc.

◆ set_variable_to_clean_on_fail()

void set_variable_to_clean_on_fail ( IntVar v)
inlineinherited

Shortcut for variable cleaner.

Definition at line 3226 of file constraint_solver.h.

◆ solver()

Solver * solver ( ) const
inlineinherited

Definition at line 3196 of file constraint_solver.h.

◆ swig_acquire_ownership() [1/2]

void swig_acquire_ownership ( Type *  vptr) const
inlineinherited

Definition at line 3053 of file constraint_solver_python_wrap.cc.

◆ swig_acquire_ownership() [2/2]

void swig_acquire_ownership ( Type *  vptr) const
inlineinherited

Definition at line 3054 of file sat_python_wrap.cc.

◆ swig_acquire_ownership_array() [1/2]

void swig_acquire_ownership_array ( Type *  vptr) const
inlineinherited

Definition at line 3045 of file constraint_solver_python_wrap.cc.

◆ swig_acquire_ownership_array() [2/2]

void swig_acquire_ownership_array ( Type *  vptr) const
inlineinherited

Definition at line 3046 of file sat_python_wrap.cc.

◆ swig_acquire_ownership_obj() [1/2]

void swig_acquire_ownership_obj ( void *  vptr,
int  own 
) const
inlineinherited

Definition at line 3060 of file constraint_solver_python_wrap.cc.

◆ swig_acquire_ownership_obj() [2/2]

void swig_acquire_ownership_obj ( void *  vptr,
int  own 
) const
inlineinherited

Definition at line 3061 of file sat_python_wrap.cc.

◆ swig_connect_director()

void swig_connect_director ( SWIG_Callback0_t  callbackToString,
SWIG_Callback1_t  callbackName,
SWIG_Callback2_t  callbackBaseName,
SWIG_Callback3_t  callbackPost,
SWIG_Callback4_t  callbackInitialPropagateWrapper 
)

Definition at line 2275 of file constraint_solver_csharp_wrap.cc.

◆ swig_disconnect_director_self() [1/2]

void swig_disconnect_director_self ( const char *  disconn_method)
inlineprotectedinherited

Definition at line 488 of file constraint_solver_java_wrap.cc.

◆ swig_disconnect_director_self() [2/2]

void swig_disconnect_director_self ( const char *  disconn_method)
inlineprotectedinherited

Definition at line 471 of file sat_java_wrap.cc.

◆ swig_disown() [1/2]

void swig_disown ( ) const
inlineinherited

Definition at line 3013 of file constraint_solver_python_wrap.cc.

◆ swig_disown() [2/2]

void swig_disown ( ) const
inlineinherited

Definition at line 3014 of file sat_python_wrap.cc.

◆ swig_get_inner()

bool swig_get_inner ( const char *  swig_protected_method_name) const
inlinevirtual

Reimplemented from Director.

Definition at line 248 of file constraint_solver_python_wrap.h.

◆ swig_get_self() [1/4]

PyObject * swig_get_self ( ) const
inlineinherited

Definition at line 3008 of file constraint_solver_python_wrap.cc.

◆ swig_get_self() [2/4]

PyObject * swig_get_self ( ) const
inlineinherited

Definition at line 3009 of file sat_python_wrap.cc.

◆ swig_get_self() [3/4]

jobject swig_get_self ( JNIEnv *  jenv) const
inlineinherited

Definition at line 523 of file constraint_solver_java_wrap.cc.

◆ swig_get_self() [4/4]

jobject swig_get_self ( JNIEnv *  jenv) const
inlineinherited

Definition at line 506 of file sat_java_wrap.cc.

◆ swig_incref() [1/2]

void swig_incref ( ) const
inlineinherited

Definition at line 3021 of file constraint_solver_python_wrap.cc.

◆ swig_incref() [2/2]

void swig_incref ( ) const
inlineinherited

Definition at line 3022 of file sat_python_wrap.cc.

◆ swig_java_change_ownership() [1/2]

void swig_java_change_ownership ( JNIEnv *  jenv,
jobject  jself,
bool  take_or_release 
)
inlineinherited

Definition at line 528 of file constraint_solver_java_wrap.cc.

◆ swig_java_change_ownership() [2/2]

void swig_java_change_ownership ( JNIEnv *  jenv,
jobject  jself,
bool  take_or_release 
)
inlineinherited

Definition at line 511 of file sat_java_wrap.cc.

◆ swig_pyobj_disown() [1/2]

static PyObject * swig_pyobj_disown ( PyObject *  pyobj,
PyObject *  SWIGUNUSEDPARMargs 
)
inlinestaticinherited

Definition at line 3081 of file constraint_solver_python_wrap.cc.

◆ swig_pyobj_disown() [2/2]

static PyObject * swig_pyobj_disown ( PyObject *  pyobj,
PyObject *  SWIGUNUSEDPARMargs 
)
inlinestaticinherited

Definition at line 3082 of file sat_python_wrap.cc.

◆ swig_release_ownership() [1/2]

int swig_release_ownership ( void *  vptr) const
inlineinherited

Definition at line 3067 of file constraint_solver_python_wrap.cc.

◆ swig_release_ownership() [2/2]

int swig_release_ownership ( void *  vptr) const
inlineinherited

Definition at line 3068 of file sat_python_wrap.cc.

◆ swig_set_inner()

void swig_set_inner ( const char *  swig_protected_method_name,
bool  swig_val 
) const
inlinevirtual

Reimplemented from Director.

Definition at line 252 of file constraint_solver_python_wrap.h.

◆ swig_set_self() [1/2]

bool swig_set_self ( JNIEnv *  jenv,
jobject  jself,
bool  mem_own,
bool  weak_global 
)
inlineinherited

Definition at line 519 of file constraint_solver_java_wrap.cc.

◆ swig_set_self() [2/2]

bool swig_set_self ( JNIEnv *  jenv,
jobject  jself,
bool  mem_own,
bool  weak_global 
)
inlineinherited

Definition at line 502 of file sat_java_wrap.cc.

◆ UnfreezeQueue()

void UnfreezeQueue ( )
inlineinherited

This method unfreezes the propagation queue.

All modifications that happened when the queue was frozen will be processed.

Definition at line 3204 of file constraint_solver.h.

◆ Var()

operations_research::IntVar * Var ( )
virtual

Creates a Boolean variable representing the status of the constraint (false = constraint is violated, true = constraint is satisfied).

It returns nullptr if the constraint does not support this API.

Reimplemented from Constraint.

Definition at line 5172 of file constraint_solver_python_wrap.cc.

Member Data Documentation

◆ swig_self_

JObjectWrapper swig_self_
protectedinherited

Definition at line 485 of file constraint_solver_java_wrap.cc.


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