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

#include <routing_filter_committables.h>

Public Types

using iterator = IndexRangeIterator<Index>
using const_iterator = IndexRangeIterator<Index>
using value_type = Index

Public Member Functions

int Size () const
bool operator== (const IndexRange &other) const
 IndexRange (Index start, Index end)
 IndexRange (Index end)
Index get_start () const
Index get_end () const
iterator begin ()
 For range-for loops.
iterator end ()
const_iterator begin () const
 For const range-for loops.
const_iterator end () const

Public Attributes

size_t begin = 0
size_t end = 0

Detailed Description

template<typename Index>
class operations_research::IndexRange< Index >

A range of indices, that can be iterated over. Useful if used in a range-for loop or as an IterableContainer.

Definition at line 144 of file routing_filter_committables.h.

Member Typedef Documentation

◆ const_iterator

template<typename Index>
using operations_research::IndexRange< Index >::const_iterator = IndexRangeIterator<Index>

Definition at line 281 of file base_types.h.

◆ iterator

template<typename Index>
using operations_research::IndexRange< Index >::iterator = IndexRangeIterator<Index>

Definition at line 280 of file base_types.h.

◆ value_type

template<typename Index>
using operations_research::IndexRange< Index >::value_type = Index

Definition at line 282 of file base_types.h.

Constructor & Destructor Documentation

◆ IndexRange() [1/2]

template<typename Index>
operations_research::IndexRange< Index >::IndexRange ( Index start,
Index end )
inline

Definition at line 284 of file base_types.h.

◆ IndexRange() [2/2]

template<typename Index>
operations_research::IndexRange< Index >::IndexRange ( Index end)
inlineexplicit

Definition at line 286 of file base_types.h.

Member Function Documentation

◆ begin() [1/2]

template<typename Index>
iterator operations_research::IndexRange< Index >::begin ( )
inline

For range-for loops.

Definition at line 292 of file base_types.h.

◆ begin() [2/2]

template<typename Index>
const_iterator operations_research::IndexRange< Index >::begin ( ) const
inline

For const range-for loops.

Definition at line 296 of file base_types.h.

◆ end() [1/2]

template<typename Index>
iterator operations_research::IndexRange< Index >::end ( )
inline

Definition at line 293 of file base_types.h.

◆ end() [2/2]

template<typename Index>
const_iterator operations_research::IndexRange< Index >::end ( ) const
inline

Definition at line 297 of file base_types.h.

◆ get_end()

template<typename Index>
Index operations_research::IndexRange< Index >::get_end ( ) const
inline

Definition at line 289 of file base_types.h.

◆ get_start()

template<typename Index>
Index operations_research::IndexRange< Index >::get_start ( ) const
inline

Definition at line 288 of file base_types.h.

◆ operator==()

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

Definition at line 148 of file routing_filter_committables.h.

◆ Size()

template<typename Index>
int operations_research::IndexRange< Index >::Size ( ) const
inline

Definition at line 147 of file routing_filter_committables.h.

Member Data Documentation

◆ begin

template<typename Index>
size_t operations_research::IndexRange< Index >::begin = 0

Definition at line 145 of file routing_filter_committables.h.

◆ end

template<typename Index>
size_t operations_research::IndexRange< Index >::end = 0

Definition at line 146 of file routing_filter_committables.h.


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