OR-Tools  9.6
ZVector< T >

Detailed Description

template<class T>
class operations_research::ZVector< T >

Definition at line 45 of file zvector.h.

Public Member Functions

 ZVector ()
 
 ZVector (int64_t min_index, int64_t max_index)
 
int64_t min_index () const
 
int64_t max_index () const
 
Value (int64_t index) const
 
T & operator[] (int64_t index)
 
const T operator[] (int64_t index) const
 
void Set (int64_t index, T value)
 
bool Reserve (int64_t new_min_index, int64_t new_max_index)
 
void SetAll (T value)
 

Constructor & Destructor Documentation

◆ ZVector() [1/2]

ZVector ( )
inline

Definition at line 47 of file zvector.h.

◆ ZVector() [2/2]

ZVector ( int64_t  min_index,
int64_t  max_index 
)
inline

Definition at line 50 of file zvector.h.

Member Function Documentation

◆ max_index()

int64_t max_index ( ) const
inline

Definition at line 60 of file zvector.h.

◆ min_index()

int64_t min_index ( ) const
inline

Definition at line 58 of file zvector.h.

◆ operator[]() [1/2]

T& operator[] ( int64_t  index)
inline

Definition at line 72 of file zvector.h.

◆ operator[]() [2/2]

const T operator[] ( int64_t  index) const
inline

Definition at line 79 of file zvector.h.

◆ Reserve()

bool Reserve ( int64_t  new_min_index,
int64_t  new_max_index 
)
inline

Definition at line 98 of file zvector.h.

◆ Set()

void Set ( int64_t  index,
value 
)
inline

Definition at line 88 of file zvector.h.

◆ SetAll()

void SetAll ( value)
inline

Definition at line 133 of file zvector.h.

◆ Value()

T Value ( int64_t  index) const
inline

Definition at line 63 of file zvector.h.


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