operations_research::ZVector< T > Class Template Reference
#include <zvector.h>
List of all members.
|
Public Member Functions |
| ZVector () |
| ZVector (int64 min_index, int64 max_index) |
int64 | min_index () const |
int64 | max_index () const |
T | Value (int64 index) const |
| Returns the value stored at index.
|
T & | operator[] (int64 index) |
| Shortcut for returning the value stored at index.
|
const T | operator[] (int64 index) const |
void | Set (int64 index, T value) |
| Sets to value the content of the array at index.
|
bool | Reserve (int64 new_min_index, int64 new_max_index) |
| Reserves memory for new minimum and new maximum indices.
|
void | SetAll (T value) |
| Sets all the elements in the array to value.
|
Detailed Description
template<class T>
class operations_research::ZVector< T >
Definition at line 42 of file zvector.h.
Constructor & Destructor Documentation
Member Function Documentation
Returns the value stored at index.
Definition at line 67 of file zvector.h.
Shortcut for returning the value stored at index.
Definition at line 76 of file zvector.h.
Sets to value the content of the array at index.
Definition at line 92 of file zvector.h.
Reserves memory for new minimum and new maximum indices.
Returns true if the memory could be reserved. Never shrinks the memory allocated.
Definition at line 102 of file zvector.h.
Sets all the elements in the array to value.
Definition at line 137 of file zvector.h.
The documentation for this class was generated from the following file: