Generated on: Thu Mar 29 07:46:58 PDT 2012 for custom file set
// doxy/ or-tools/ src/ constraint_solver/

operations_research::RevArray< T > Class Template Reference

Reversible array of POD types. More...

#include <constraint_solver.h>

Inheritance diagram for operations_research::RevArray< T >:

operations_research::NumericalRevArray< T >

List of all members.

Public Member Functions

 RevArray (int size, const T &val)
 ~RevArray ()
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 stamps always starts at 1, thus an initial value of 0 will always trigger the first SaveValue.

Definition at line 3628 of file constraint_solver.h.


Constructor & Destructor Documentation

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

Definition at line 3630 of file constraint_solver.h.

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

Definition at line 3638 of file constraint_solver.h.


Member Function Documentation

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

Definition at line 3640 of file constraint_solver.h.

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

Definition at line 3643 of file constraint_solver.h.

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

Definition at line 3646 of file constraint_solver.h.


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