Generated on: Thu Mar 29 07:46:58 PDT 2012 for custom file set
// doxy/ or-tools/ src/ util/

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
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

template<class T>
operations_research::ZVector< T >::ZVector (  )  [inline]

Definition at line 44 of file zvector.h.

template<class T>
operations_research::ZVector< T >::ZVector ( int64  min_index,
int64  max_index 
) [inline]

Definition at line 50 of file zvector.h.


Member Function Documentation

template<class T>
int64 operations_research::ZVector< T >::min_index (  )  const [inline]

Definition at line 62 of file zvector.h.

template<class T>
int64 operations_research::ZVector< T >::max_index (  )  const [inline]

Definition at line 64 of file zvector.h.

template<class T>
T operations_research::ZVector< T >::Value ( int64  index  )  const [inline]

Returns the value stored at index.

Definition at line 67 of file zvector.h.

template<class T>
T& operations_research::ZVector< T >::operator[] ( int64  index  )  [inline]

Shortcut for returning the value stored at index.

Definition at line 76 of file zvector.h.

template<class T>
const T operations_research::ZVector< T >::operator[] ( int64  index  )  const [inline]

Definition at line 83 of file zvector.h.

template<class T>
void operations_research::ZVector< T >::Set ( int64  index,
value 
) [inline]

Sets to value the content of the array at index.

Definition at line 92 of file zvector.h.

template<class T>
bool operations_research::ZVector< T >::Reserve ( int64  new_min_index,
int64  new_max_index 
) [inline]

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.

template<class T>
void operations_research::ZVector< T >::SetAll ( value  )  [inline]

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: