Scid  4.6.5
Public Types | Public Member Functions | List of all members
HFilter::const_iterator Class Reference

class const_iterator - iterator for HFilter objects More...

#include <hfilter.h>

Public Types

typedef std::forward_iterator_tag iterator_category
 
typedef std::ptrdiff_t difference_type
 
typedef gamenumT value_type
 
typedef const gamenumTpointer
 
typedef const gamenumTreference
 

Public Member Functions

 const_iterator (gamenumT gnum, gamenumT end, const HFilter *hfilter, bool inFilter=true)
 
reference operator* () const
 
const_iteratoroperator++ ()
 
bool operator!= (const const_iterator &b) const
 
bool operator== (const const_iterator &b) const
 

Detailed Description

class const_iterator - iterator for HFilter objects

This class and the relative functions begin() and end() allow to use HFilter objects with STL algorithms and c++11 for-ranged loops. For example: for (auto& gnum : *hfilter_obj) {} is equal to: for (gamenumT gnum = 0, gnum < scidBaseT::numGames(); gnum++) { if (hfilter_obj->get(gnum) == 0) continue; }

Definition at line 63 of file hfilter.h.

Member Typedef Documentation

Definition at line 71 of file hfilter.h.

typedef std::forward_iterator_tag HFilter::const_iterator::iterator_category

Definition at line 70 of file hfilter.h.

Definition at line 73 of file hfilter.h.

Definition at line 74 of file hfilter.h.

Definition at line 72 of file hfilter.h.

Constructor & Destructor Documentation

HFilter::const_iterator::const_iterator ( gamenumT  gnum,
gamenumT  end,
const HFilter hfilter,
bool  inFilter = true 
)
inline

Definition at line 76 of file hfilter.h.

Member Function Documentation

bool HFilter::const_iterator::operator!= ( const const_iterator b) const
inline

Definition at line 96 of file hfilter.h.

reference HFilter::const_iterator::operator* ( ) const
inline

Definition at line 86 of file hfilter.h.

const_iterator& HFilter::const_iterator::operator++ ( )
inline

Definition at line 88 of file hfilter.h.

bool HFilter::const_iterator::operator== ( const const_iterator b) const
inline

Definition at line 99 of file hfilter.h.


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