Jpp  16.0.3
the software that should make you happy
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Private Member Functions | Private Attributes | List of all members
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

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

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  }
std::list< ChList::const_iterator > const * m_matching
Definition: gui.cpp:898
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
then echo The file $DIR KM3NeT_00000001_00000000 root already please rename or remove it first

Member Data Documentation

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: