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

Public Member Functions

 last_view_comparator (bool reverse)
 
bool operator() (mon_channel const &first, mon_channel const &second)
 

Private Attributes

bool m_reverse
 

Detailed Description

Definition at line 815 of file gui.cpp.

Constructor & Destructor Documentation

◆ last_view_comparator()

gui::last_view_comparator::last_view_comparator ( bool reverse)
inlineexplicit

Definition at line 822 of file gui.cpp.

823 :
824 m_reverse(reverse)
825 {}

Member Function Documentation

◆ operator()()

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

Definition at line 827 of file gui.cpp.

828 {
829 using namespace boost::chrono;
830 return m_reverse
831 ? duration_cast<seconds>(first.last_view()) < duration_cast<seconds>(second.last_view())
832 : duration_cast<seconds>(first.last_view()) > duration_cast<seconds>(second.last_view());
833 }

Member Data Documentation

◆ m_reverse

bool gui::last_view_comparator::m_reverse
private

Definition at line 817 of file gui.cpp.


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