Version: 9.15.0
PairVecIterator Class Reference
Inheritance diagram for PairVecIterator:
Collaboration diagram for PairVecIterator:

Public Member Functions

 PairVecIterator (const std::vector< const Task * > *v0, const std::vector< std::size_t > *v1, const std::size_t num)
 
PairVecIteratoroperator++ ()
 
bool operator== (PairVecIterator other) const
 
bool operator!= (PairVecIterator other) const
 
reference operator* () const
 

Private Attributes

const std::vector< const Task * > * _v0
 
const std::vector< std::size_t > * _v1
 
std::size_t _num
 

Detailed Description

Definition at line 62 of file SalomeHPContainer.cxx.

Constructor & Destructor Documentation

◆ PairVecIterator()

PairVecIterator::PairVecIterator ( const std::vector< const Task * > *  v0,
const std::vector< std::size_t > *  v1,
const std::size_t  num 
)
inlineexplicit

Definition at line 73 of file SalomeHPContainer.cxx.

73 : _v0(v0),_v1(v1),_num(num) { }
const std::vector< std::size_t > * _v1
const std::vector< const Task * > * _v0

Member Function Documentation

◆ operator!=()

bool PairVecIterator::operator!= ( PairVecIterator  other) const
inline

Definition at line 76 of file SalomeHPContainer.cxx.

76 { return !(*this == other); }

◆ operator*()

reference PairVecIterator::operator* ( ) const
inline

Definition at line 77 of file SalomeHPContainer.cxx.

77 { return std::pair<const Task *,std::size_t>((*_v0)[_num],(*_v1)[_num]); }

◆ operator++()

PairVecIterator& PairVecIterator::operator++ ( )
inline

Definition at line 74 of file SalomeHPContainer.cxx.

74 { _num++; return *this; }

◆ operator==()

bool PairVecIterator::operator== ( PairVecIterator  other) const
inline

Definition at line 75 of file SalomeHPContainer.cxx.

75 { return _num == other._num; }

References _num.

Member Data Documentation

◆ _num

std::size_t PairVecIterator::_num
private

Definition at line 71 of file SalomeHPContainer.cxx.

Referenced by operator==().

◆ _v0

const std::vector< const Task *>* PairVecIterator::_v0
private

Definition at line 69 of file SalomeHPContainer.cxx.

◆ _v1

const std::vector<std::size_t>* PairVecIterator::_v1
private

Definition at line 70 of file SalomeHPContainer.cxx.


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