Google OR-Tools v9.11
a fast and portable software suite for combinatorial optimization
Loading...
Searching...
No Matches
com.google.ortools.constraintsolver.RevLong Class Reference

Public Member Functions

synchronized void delete ()
 
 RevLong (long val)
 
long value ()
 
void setValue (Solver s, long val)
 

Protected Member Functions

 RevLong (long cPtr, boolean cMemoryOwn)
 
void finalize ()
 

Static Protected Member Functions

static long getCPtr (RevLong obj)
 
static long swigRelease (RevLong obj)
 

Protected Attributes

transient boolean swigCMemOwn
 

Detailed Description

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.

Definition at line 18 of file RevLong.java.

Constructor & Destructor Documentation

◆ RevLong() [1/2]

com.google.ortools.constraintsolver.RevLong.RevLong ( long cPtr,
boolean cMemoryOwn )
protected

Definition at line 22 of file RevLong.java.

◆ RevLong() [2/2]

com.google.ortools.constraintsolver.RevLong.RevLong ( long val)

Definition at line 58 of file RevLong.java.

Member Function Documentation

◆ delete()

synchronized void com.google.ortools.constraintsolver.RevLong.delete ( )

Definition at line 48 of file RevLong.java.

◆ finalize()

void com.google.ortools.constraintsolver.RevLong.finalize ( )
protected

Definition at line 44 of file RevLong.java.

◆ getCPtr()

static long com.google.ortools.constraintsolver.RevLong.getCPtr ( RevLong obj)
staticprotected

Definition at line 27 of file RevLong.java.

◆ setValue()

void com.google.ortools.constraintsolver.RevLong.setValue ( Solver s,
long val )

Definition at line 66 of file RevLong.java.

◆ swigRelease()

static long com.google.ortools.constraintsolver.RevLong.swigRelease ( RevLong obj)
staticprotected

Definition at line 31 of file RevLong.java.

◆ value()

long com.google.ortools.constraintsolver.RevLong.value ( )

Definition at line 62 of file RevLong.java.

Member Data Documentation

◆ swigCMemOwn

transient boolean com.google.ortools.constraintsolver.RevLong.swigCMemOwn
protected

Definition at line 20 of file RevLong.java.


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