Scid  4.6.5
Public Member Functions | List of all members
HFilterInverted Class Reference

class HFilterInverted - iterate through games excluded from a filter More...

#include <hfilter.h>

Public Member Functions

 HFilterInverted (const HFilter &hfilter)
 
HFilter::const_iterator begin () const
 
HFilter::const_iterator end () const
 
size_t size () const
 

Detailed Description

class HFilterInverted - iterate through games excluded from a filter

This class allow to iterate through games not included in HFilter objects using STL algorithms and c++11 for-ranged loops. For example: for (auto& gnum : HFilterInverted(hfilter_obj)) {} is equal to: for (gamenumT gnum = 0, gnum < scidBaseT::numGames(); gnum++) { if (hfilter_obj->get(gnum) != 0) continue; }

Definition at line 188 of file hfilter.h.

Constructor & Destructor Documentation

HFilterInverted::HFilterInverted ( const HFilter hfilter)
inlineexplicit

Definition at line 192 of file hfilter.h.

Member Function Documentation

HFilter::const_iterator HFilterInverted::begin ( ) const
inline

Definition at line 195 of file hfilter.h.

HFilter::const_iterator HFilterInverted::end ( ) const
inline

Definition at line 196 of file hfilter.h.

size_t HFilterInverted::size ( ) const
inline

Definition at line 197 of file hfilter.h.


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