Google OR-Tools v9.11
a fast and portable software suite for combinatorial optimization
Loading...
Searching...
No Matches
operations_research::SparsePermutation::Iterator Struct Reference

#include <sparse_permutation.h>

Public Types

typedef int value_type
 These typedefs allow this iterator to be used within testing::ElementsAre.
 
typedef std::vector< int >::const_iterator const_iterator
 

Public Member Functions

 Iterator ()=default
 
 Iterator (const std::vector< int >::const_iterator &b, const std::vector< int >::const_iterator &e)
 
std::vector< int >::const_iterator begin () const
 
std::vector< int >::const_iterator end () const
 
int size () const
 

Public Attributes

const std::vector< int >::const_iterator begin_
 
const std::vector< int >::const_iterator end_
 

Detailed Description

Definition at line 100 of file sparse_permutation.h.

Member Typedef Documentation

◆ const_iterator

Definition at line 103 of file sparse_permutation.h.

◆ value_type

These typedefs allow this iterator to be used within testing::ElementsAre.

Definition at line 102 of file sparse_permutation.h.

Constructor & Destructor Documentation

◆ Iterator() [1/2]

operations_research::SparsePermutation::Iterator::Iterator ( )
default

◆ Iterator() [2/2]

operations_research::SparsePermutation::Iterator::Iterator ( const std::vector< int >::const_iterator & b,
const std::vector< int >::const_iterator & e )
inline

Definition at line 106 of file sparse_permutation.h.

Member Function Documentation

◆ begin()

std::vector< int >::const_iterator operations_research::SparsePermutation::Iterator::begin ( ) const
inline

Definition at line 110 of file sparse_permutation.h.

◆ end()

std::vector< int >::const_iterator operations_research::SparsePermutation::Iterator::end ( ) const
inline

Definition at line 111 of file sparse_permutation.h.

◆ size()

int operations_research::SparsePermutation::Iterator::size ( ) const
inline

Definition at line 115 of file sparse_permutation.h.

Member Data Documentation

◆ begin_

const std::vector<int>::const_iterator operations_research::SparsePermutation::Iterator::begin_

Definition at line 112 of file sparse_permutation.h.

◆ end_

const std::vector<int>::const_iterator operations_research::SparsePermutation::Iterator::end_

Definition at line 113 of file sparse_permutation.h.


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