Flow123d  jenkins-Flow123d-windows32-release-multijob-51
Public Member Functions | Private Attributes | List of all members
TimeMarksIterator Class Reference

Iterator over TimeMark objects in TimeMarks object (database of TimeMark objects). More...

#include <time_marks.hh>

Public Member Functions

 TimeMarksIterator (const vector< TimeMark > &marks, const vector< TimeMark >::const_iterator &it, const TimeMark::Type &mask)
 
TimeMarksIteratoroperator= (const TimeMarksIterator &it)
 
TimeMarksIteratoroperator++ ()
 Prefix increment. Skip non matching marks. More...
 
TimeMarksIteratoroperator-- ()
 Prefix decrement. Skip non matching marks. More...
 
const TimeMarkoperator* () const
 
const TimeMarkoperator-> () const
 -> dereference operator More...
 
bool operator== (const TimeMarksIterator &other) const
 
bool operator!= (const TimeMarksIterator &other) const
 
TimeMark::Type mask ()
 Returns mask. More...
 

Private Attributes

const vector< TimeMark > & marks_
 Reference to the vector of TimeMark objects. More...
 
vector< TimeMark >::const_iterator it_
 Iterator over the vector of TimeMark objects. More...
 
TimeMark::Type mask_
 Mask type. More...
 

Detailed Description

Iterator over TimeMark objects in TimeMarks object (database of TimeMark objects).

Iterator over the TimeMarks of particular mask. This is always const iterator, i.e. it points to const TimeMark. While iterating over TimeMarks with different types, all non matching types are skipped.

Definition at line 283 of file time_marks.hh.

Constructor & Destructor Documentation

TimeMarksIterator::TimeMarksIterator ( const vector< TimeMark > &  marks,
const vector< TimeMark >::const_iterator &  it,
const TimeMark::Type mask 
)
inline

Constructor. It is used in TimeMarks class which has the vector of TimeMark objects.

Parameters
marksis vector of TimeMark objects.
itis iterator over the vector of TimeMark objects.
maskis the type of marks over which we iterate.

Definition at line 290 of file time_marks.hh.

Member Function Documentation

TimeMark::Type TimeMarksIterator::mask ( )
inline

Returns mask.

Definition at line 341 of file time_marks.hh.

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

Definition at line 337 of file time_marks.hh.

const TimeMark& TimeMarksIterator::operator* ( ) const
inline
  • dereference operator

Definition at line 321 of file time_marks.hh.

TimeMarksIterator& TimeMarksIterator::operator++ ( )
inline

Prefix increment. Skip non matching marks.

Definition at line 301 of file time_marks.hh.

TimeMarksIterator& TimeMarksIterator::operator-- ( )
inline

Prefix decrement. Skip non matching marks.

Definition at line 311 of file time_marks.hh.

const TimeMark* TimeMarksIterator::operator-> ( ) const
inline

-> dereference operator

Definition at line 328 of file time_marks.hh.

TimeMarksIterator& TimeMarksIterator::operator= ( const TimeMarksIterator it)
inline

Definition at line 293 of file time_marks.hh.

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

Definition at line 334 of file time_marks.hh.

Member Data Documentation

vector<TimeMark>::const_iterator TimeMarksIterator::it_
private

Iterator over the vector of TimeMark objects.

Definition at line 348 of file time_marks.hh.

const vector<TimeMark>& TimeMarksIterator::marks_
private

Reference to the vector of TimeMark objects.

Definition at line 346 of file time_marks.hh.

TimeMark::Type TimeMarksIterator::mask_
private

Mask type.

Definition at line 350 of file time_marks.hh.


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