Java Reference

Java Reference

RevLong

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 14 of file RevLong.java.

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)
 

Constructor & Destructor Documentation

◆ RevLong() [1/2]

RevLong ( long  cPtr,
boolean  cMemoryOwn 
)
inlineprotected

Definition at line 18 of file RevLong.java.

◆ RevLong() [2/2]

RevLong ( long  val)
inline

Definition at line 42 of file RevLong.java.

Member Function Documentation

◆ delete()

synchronized void delete ( )
inline

Definition at line 32 of file RevLong.java.

◆ setValue()

void setValue ( Solver  s,
long  val 
)
inline

Definition at line 50 of file RevLong.java.

◆ value()

long value ( )
inline

Definition at line 46 of file RevLong.java.


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