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

Public Member Functions

synchronized void delete ()
 
 RevBool (boolean val)
 
boolean value ()
 
void setValue (Solver s, boolean val)
 

Protected Member Functions

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

Static Protected Member Functions

static long getCPtr (RevBool obj)
 
static long swigRelease (RevBool 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 RevBool.java.

Constructor & Destructor Documentation

◆ RevBool() [1/2]

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

Definition at line 22 of file RevBool.java.

◆ RevBool() [2/2]

com.google.ortools.constraintsolver.RevBool.RevBool ( boolean val)

Definition at line 58 of file RevBool.java.

Member Function Documentation

◆ delete()

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

Definition at line 48 of file RevBool.java.

◆ finalize()

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

Definition at line 44 of file RevBool.java.

◆ getCPtr()

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

Definition at line 27 of file RevBool.java.

◆ setValue()

void com.google.ortools.constraintsolver.RevBool.setValue ( Solver s,
boolean val )

Definition at line 66 of file RevBool.java.

◆ swigRelease()

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

Definition at line 31 of file RevBool.java.

◆ value()

boolean com.google.ortools.constraintsolver.RevBool.value ( )

Definition at line 62 of file RevBool.java.

Member Data Documentation

◆ swigCMemOwn

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

Definition at line 20 of file RevBool.java.


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