Class RevLong
- java.lang.Object
-
- com.google.ortools.constraintsolver.RevLong
-
public class RevLong extends java.lang.ObjectThis 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.
-
-
Field Summary
Fields Modifier and Type Field Description protected booleanswigCMemOwn
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddelete()protected voidfinalize()protected static longgetCPtr(RevLong obj)voidsetValue(Solver s, long val)protected static longswigRelease(RevLong obj)longvalue()
-
-
-
Method Detail
-
getCPtr
protected static long getCPtr(RevLong obj)
-
swigRelease
protected static long swigRelease(RevLong obj)
-
finalize
protected void finalize()
- Overrides:
finalizein classjava.lang.Object
-
delete
public void delete()
-
value
public long value()
-
setValue
public void setValue(Solver s, long val)
-
-