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

Template to abstract the access to STL functions or vector values. More...

#include <vector_or_function.h>

Public Member Functions

 VectorOrFunction (Evaluator evaluator)
 
void Reset (Evaluator evaluator)
 
ScalarType operator() (int i) const
 

Detailed Description

template<typename ScalarType, typename Evaluator>
class operations_research::VectorOrFunction< ScalarType, Evaluator >

Template to abstract the access to STL functions or vector values.

Definition at line 26 of file vector_or_function.h.

Constructor & Destructor Documentation

◆ VectorOrFunction()

template<typename ScalarType , typename Evaluator >
operations_research::VectorOrFunction< ScalarType, Evaluator >::VectorOrFunction ( Evaluator evaluator)
inlineexplicit

Definition at line 28 of file vector_or_function.h.

Member Function Documentation

◆ operator()()

template<typename ScalarType , typename Evaluator >
ScalarType operations_research::VectorOrFunction< ScalarType, Evaluator >::operator() ( int i) const
inline

Definition at line 31 of file vector_or_function.h.

◆ Reset()

template<typename ScalarType , typename Evaluator >
void operations_research::VectorOrFunction< ScalarType, Evaluator >::Reset ( Evaluator evaluator)
inline

Definition at line 30 of file vector_or_function.h.


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