Google OR-Tools v9.14
a fast and portable software suite for combinatorial optimization
Loading...
Searching...
No Matches
operations_research::CompressedStrongVectorIterator< EntryIndex, Index > Class Template Reference

#include <base_types.h>

Public Member Functions

 CompressedStrongVectorIterator (const CompressedStrongVector< EntryIndex, Index > &compressed_vector)
 CompressedStrongVectorIterator (const CompressedStrongVector< EntryIndex, Index > &compressed_vector, bool at_end)
bool at_end () const
Index operator* ()
bool operator== (const CompressedStrongVectorIterator &other) const
bool operator!= (const CompressedStrongVectorIterator &other) const
CompressedStrongVectorIteratoroperator++ ()

Detailed Description

template<typename EntryIndex, typename Index>
class operations_research::CompressedStrongVectorIterator< EntryIndex, Index >

Iterator for a compressed strong vector. There is no tool for decompressing a compressed strong vector, so this iterator is the only way to access the elements, always in order. The iterator is not thread-safe.

Definition at line 188 of file base_types.h.

Constructor & Destructor Documentation

◆ CompressedStrongVectorIterator() [1/2]

template<typename EntryIndex, typename Index>
operations_research::CompressedStrongVectorIterator< EntryIndex, Index >::CompressedStrongVectorIterator ( const CompressedStrongVector< EntryIndex, Index > & compressed_vector)
inlineexplicit

Definition at line 190 of file base_types.h.

◆ CompressedStrongVectorIterator() [2/2]

template<typename EntryIndex, typename Index>
operations_research::CompressedStrongVectorIterator< EntryIndex, Index >::CompressedStrongVectorIterator ( const CompressedStrongVector< EntryIndex, Index > & compressed_vector,
bool at_end )
inlineexplicit

Definition at line 197 of file base_types.h.

Member Function Documentation

◆ at_end()

template<typename EntryIndex, typename Index>
bool operations_research::CompressedStrongVectorIterator< EntryIndex, Index >::at_end ( ) const
inline

Definition at line 205 of file base_types.h.

◆ operator!=()

template<typename EntryIndex, typename Index>
bool operations_research::CompressedStrongVectorIterator< EntryIndex, Index >::operator!= ( const CompressedStrongVectorIterator< EntryIndex, Index > & other) const
inline

Definition at line 217 of file base_types.h.

◆ operator*()

template<typename EntryIndex, typename Index>
Index operations_research::CompressedStrongVectorIterator< EntryIndex, Index >::operator* ( )
inline

Definition at line 210 of file base_types.h.

◆ operator++()

template<typename EntryIndex, typename Index>
CompressedStrongVectorIterator & operations_research::CompressedStrongVectorIterator< EntryIndex, Index >::operator++ ( )
inline

Definition at line 221 of file base_types.h.

◆ operator==()

template<typename EntryIndex, typename Index>
bool operations_research::CompressedStrongVectorIterator< EntryIndex, Index >::operator== ( const CompressedStrongVectorIterator< EntryIndex, Index > & other) const
inline

Definition at line 212 of file base_types.h.


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