OR-Tools  8.2
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 min_index, int64 max_index)
 
int64 min_index () const
 
int64 max_index () const
 
Value (int64 index) const
 
T & operator[] (int64 index)
 
const T operator[] (int64 index) const
 
void Set (int64 index, T value)
 
bool Reserve (int64 new_min_index, int64 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  min_index,
int64  max_index 
)
inline

Definition at line 50 of file zvector.h.

Member Function Documentation

◆ max_index()

int64 max_index ( ) const
inline

Definition at line 60 of file zvector.h.

◆ min_index()

int64 min_index ( ) const
inline

Definition at line 58 of file zvector.h.

◆ operator[]() [1/2]

T & operator[] ( int64  index)
inline

Definition at line 72 of file zvector.h.

◆ operator[]() [2/2]

const T operator[] ( int64  index) const
inline

Definition at line 79 of file zvector.h.

◆ Reserve()

bool Reserve ( int64  new_min_index,
int64  new_max_index 
)
inline

Definition at line 98 of file zvector.h.

◆ Set()

void Set ( int64  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  index) const
inline

Definition at line 63 of file zvector.h.


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