Class RevLong

java.lang.Object
com.google.ortools.constraintsolver.RevLong

public class RevLong
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.
  • Field Summary

    Fields
    Modifier and Type Field Description
    protected boolean swigCMemOwn  
  • Constructor Summary

    Constructors
    Modifier Constructor Description
      RevLong​(long val)  
    protected RevLong​(long cPtr, boolean cMemoryOwn)  
  • Method Summary

    Modifier and Type Method Description
    void delete()  
    protected void finalize()  
    protected static long getCPtr​(RevLong obj)  
    void setValue​(Solver s, long val)  
    long value()  

    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

    • RevLong

      protected RevLong​(long cPtr, boolean cMemoryOwn)
    • RevLong

      public RevLong​(long val)
  • Method Details

    • getCPtr

      protected static long getCPtr​(RevLong obj)
    • finalize

      protected void finalize()
      Overrides:
      finalize in class java.lang.Object
    • delete

      public void delete()
    • value

      public long value()
    • setValue

      public void setValue​(Solver s, long val)