Google OR-Tools v9.9
a fast and portable software suite for combinatorial optimization
Loading...
Searching...
No Matches
operations_research::Rev< T > Class Template Reference

#include <constraint_solver.h>

Inheritance diagram for operations_research::Rev< T >:
operations_research::NumericalRev< int > operations_research::NumericalRev< T >

Public Member Functions

 Rev (const T &val)
 
const T & Value () const
 
void SetValue (Solver *const s, const T &val)
 

Detailed Description

template<class T>
class operations_research::Rev< T >

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 4011 of file constraint_solver.h.

Constructor & Destructor Documentation

◆ Rev()

template<class T >
operations_research::Rev< T >::Rev ( const T & val)
inlineexplicit

Definition at line 4013 of file constraint_solver.h.

Member Function Documentation

◆ SetValue()

template<class T >
void operations_research::Rev< T >::SetValue ( Solver *const s,
const T & val )
inline

Definition at line 4017 of file constraint_solver.h.

◆ Value()

template<class T >
const T & operations_research::Rev< T >::Value ( ) const
inline

Definition at line 4015 of file constraint_solver.h.


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