OR-Tools  8.2
VectorOrFunction< ScalarType, std::vector< ScalarType > >

Detailed Description

template<typename ScalarType>
class operations_research::VectorOrFunction< ScalarType, std::vector< ScalarType > >

Definition at line 40 of file vector_or_function.h.

Public Member Functions

 VectorOrFunction (std::vector< ScalarType > values)
 
void Reset (std::vector< ScalarType > values)
 
ScalarType operator() (int i) const
 

Constructor & Destructor Documentation

◆ VectorOrFunction()

VectorOrFunction ( std::vector< ScalarType >  values)
inlineexplicit

Definition at line 42 of file vector_or_function.h.

Member Function Documentation

◆ operator()()

ScalarType operator() ( int  i) const
inline

Definition at line 45 of file vector_or_function.h.

◆ Reset()

void Reset ( std::vector< ScalarType >  values)
inline

Definition at line 44 of file vector_or_function.h.


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