C++ Reference: class VarLocalSearchOperator

This documentation is automatically generated.

Method
Activate

Return type: void

Arguments: int64 index

Activated

Return type: bool

Arguments: int64 index

AddVars

Return type: void

Arguments: const std::vector<V*>& vars

ApplyChanges

Return type: bool

Arguments: Assignment* delta, Assignment* deltadelta

Deactivate

Return type: void

Arguments: int64 index

HoldsDelta

Return type: bool

IsIncremental

Return type: virtual bool

OldValue

Return type: const Val&

Arguments: int64 index

OnStart

Return type: virtual void

Called by Start() after synchronizing the operator with the current assignment. Should be overridden instead of Start() to avoid calling VarLocalSearchOperator::Start explicitly.

RevertChanges

Return type: void

Arguments: bool incremental

SetValue

Return type: void

Arguments: int64 index, const Val& value

Size

Return type: int

SkipUnchanged

Return type: virtual bool

Arguments: int index

Start

Return type: void

Arguments: const Assignment* assignment

This method should not be overridden. Override OnStart() instead which is called before exiting this method.

Value

Return type: const Val&

Arguments: int64 index

Returns the value in the current assignment of the variable of given index.

Var

Return type: V*

Arguments: int64 index

Returns the variable of given index.

VarLocalSearchOperator

VarLocalSearchOperator

Arguments: std::vector<V*> vars, Handler var_handler

~VarLocalSearchOperator