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

Subclass of RevArray<T> which adds numerical operations. More...

#include <constraint_solver.h>

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

Public Member Functions

 NumericalRevArray (int size, const T &val)
 
void Add (Solver *const s, int index, const T &to_add)
 
void Incr (Solver *const s, int index)
 
void Decr (Solver *const s, int index)
 
- Public Member Functions inherited from operations_research::RevArray< T >
 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::NumericalRevArray< T >

Subclass of RevArray<T> which adds numerical operations.

Definition at line 4092 of file constraint_solver.h.

Constructor & Destructor Documentation

◆ NumericalRevArray()

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

Definition at line 4094 of file constraint_solver.h.

Member Function Documentation

◆ Add()

template<class T >
void operations_research::NumericalRevArray< T >::Add ( Solver *const s,
int index,
const T & to_add )
inline

Definition at line 4096 of file constraint_solver.h.

◆ Decr()

template<class T >
void operations_research::NumericalRevArray< T >::Decr ( Solver *const s,
int index )
inline

Definition at line 4102 of file constraint_solver.h.

◆ Incr()

template<class T >
void operations_research::NumericalRevArray< T >::Incr ( Solver *const s,
int index )
inline

Definition at line 4100 of file constraint_solver.h.


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