Google OR-Tools v9.14
a fast and portable software suite for combinatorial optimization
Loading...
Searching...
No Matches
util::internal::Vector< IndexT, T > Class Template Reference

Allows indexing into a vector with an edge or node index. More...

#include <graph.h>

Inheritance diagram for util::internal::Vector< IndexT, T >:

Public Member Functions

const T & operator[] (IndexT index) const
T & operator[] (IndexT index)
void resize (IndexT index, const T &value)
void reserve (IndexT index)
void assign (IndexT index, const T &value)
IndexT size () const

Detailed Description

template<typename IndexT, typename T>
class util::internal::Vector< IndexT, T >

Allows indexing into a vector with an edge or node index.

Definition at line 382 of file graph.h.

Member Function Documentation

◆ assign()

template<typename IndexT, typename T>
void util::internal::Vector< IndexT, T >::assign ( IndexT index,
const T & value )
inline

Definition at line 399 of file graph.h.

◆ operator[]() [1/2]

template<typename IndexT, typename T>
T & util::internal::Vector< IndexT, T >::operator[] ( IndexT index)
inline

Definition at line 387 of file graph.h.

◆ operator[]() [2/2]

template<typename IndexT, typename T>
const T & util::internal::Vector< IndexT, T >::operator[] ( IndexT index) const
inline

Definition at line 384 of file graph.h.

◆ reserve()

template<typename IndexT, typename T>
void util::internal::Vector< IndexT, T >::reserve ( IndexT index)
inline

Definition at line 395 of file graph.h.

◆ resize()

template<typename IndexT, typename T>
void util::internal::Vector< IndexT, T >::resize ( IndexT index,
const T & value )
inline

Definition at line 391 of file graph.h.

◆ size()

template<typename IndexT, typename T>
IndexT util::internal::Vector< IndexT, T >::size ( ) const
inline

Definition at line 403 of file graph.h.


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