Jpp test-rotations-new
the software that should make you happy
Loading...
Searching...
No Matches
gui::match_comparator Class Reference

Public Member Functions

 match_comparator (std::list< ChList::const_iterator > const &matching)
 
bool operator() (mon_channel const &first, mon_channel const &second)
 

Private Member Functions

bool belongs (mon_channel const &ch)
 

Private Attributes

std::list< ChList::const_iterator > const * m_matching
 

Detailed Description

Definition at line 896 of file gui.cpp.

Constructor & Destructor Documentation

◆ match_comparator()

gui::match_comparator::match_comparator ( std::list< ChList::const_iterator > const & matching)
inline

Definition at line 918 of file gui.cpp.

920 : m_matching(&matching)
921 {}
std::list< ChList::const_iterator > const * m_matching
Definition gui.cpp:898

Member Function Documentation

◆ belongs()

bool gui::match_comparator::belongs ( mon_channel const & ch)
inlineprivate

Definition at line 900 of file gui.cpp.

901 {
903 for (
904 citer it = m_matching->begin(), et = m_matching->end()
905 ; it != et
906 ; ++it
907 ) {
908 if ((*(*it)).domid() == ch.domid()) {
909 return true;
910 }
911 }
912
913 return false;
914 }

◆ operator()()

bool gui::match_comparator::operator() ( mon_channel const & first,
mon_channel const & second )
inline

Definition at line 923 of file gui.cpp.

924 {
925 bool const first_matches = belongs(first);
926 bool const second_matches = belongs(second);
927
928 return first_matches || !second_matches;
929 }
bool belongs(mon_channel const &ch)
Definition gui.cpp:900

Member Data Documentation

◆ m_matching

std::list<ChList::const_iterator> const* gui::match_comparator::m_matching
private

Definition at line 898 of file gui.cpp.


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