Class RevBool
java.lang.Object
com.google.ortools.constraintsolver.RevBool
public class RevBool
extends java.lang.Object
This class adds reversibility to a POD type.
It contains the stamp optimization. i.e. the SaveValue call is done
only once per node of the search tree. Please note that actual
stamps always starts at 1, thus an initial value of 0 will always
trigger the first SaveValue.
It contains the stamp optimization. i.e. the SaveValue call is done
only once per node of the search tree. Please note that actual
stamps always starts at 1, thus an initial value of 0 will always
trigger the first SaveValue.
-
Field Summary
Fields Modifier and Type Field Description protected booleanswigCMemOwn -
Constructor Summary
-
Method Summary
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
swigCMemOwn
protected transient boolean swigCMemOwn
-
-
Constructor Details
-
RevBool
protected RevBool(long cPtr, boolean cMemoryOwn) -
RevBool
public RevBool(boolean val)
-
-
Method Details
-
getCPtr
-
finalize
protected void finalize()- Overrides:
finalizein classjava.lang.Object
-
delete
public void delete() -
value
public boolean value() -
setValue
-