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

#include <constraint_solver.h>

Inheritance diagram for operations_research::RevArray< T >:
operations_research::NumericalRevArray< T >

Public Member Functions

 RevArray (int size, const T &val)
 
 ~RevArray ()
 
int64_t size () const
 
const T & Value (int index) const
 
const T & operator[] (int index) const
 
void SetValue (Solver *const s, int index, const T &val)
 

Detailed Description

template<class T>
class operations_research::RevArray< T >

Reversible array of POD types. It contains the stamp optimization. I.e., the SaveValue call is done only once per node of the search tree. Please note that actual stamp always starts at 1, thus an initial value of 0 always triggers the first SaveValue.

Definition at line 4053 of file constraint_solver.h.

Constructor & Destructor Documentation

◆ RevArray()

template<class T >
operations_research::RevArray< T >::RevArray ( int size,
const T & val )
inline

Definition at line 4055 of file constraint_solver.h.

◆ ~RevArray()

template<class T >
operations_research::RevArray< T >::~RevArray ( )
inline

Definition at line 4063 of file constraint_solver.h.

Member Function Documentation

◆ operator[]()

template<class T >
const T & operations_research::RevArray< T >::operator[] ( int index) const
inline

Definition at line 4070 of file constraint_solver.h.

◆ SetValue()

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

Definition at line 4073 of file constraint_solver.h.

◆ size()

template<class T >
int64_t operations_research::RevArray< T >::size ( ) const
inline

Definition at line 4065 of file constraint_solver.h.

◆ Value()

template<class T >
const T & operations_research::RevArray< T >::Value ( int index) const
inline

Definition at line 4067 of file constraint_solver.h.


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