MsPASS C++ API  2.4.4.dev122+gb075c5a7b
Defines the C++ API for MsPASS
Loading...
Searching...
No Matches
mspass::seismic::TimeWindowCmp Class Reference

Function object used for weak comparison to order TimeWindow objects. More...

#include <DataGap.h>

Public Member Functions

bool operator() (const mspass::algorithms::TimeWindow ti1, const mspass::algorithms::TimeWindow ti2) const

Detailed Description

Function object used for weak comparison to order TimeWindow objects.

TimeWindow objects are used, among other things, to define real or processed induced data gaps. The set container requires a weak ordering function like to correctly determine if a time is inside a particular time window.

Author
Gary L. Pavlis

Member Function Documentation

◆ operator()()

bool mspass::seismic::TimeWindowCmp::operator() ( const mspass::algorithms::TimeWindow ti1,
const mspass::algorithms::TimeWindow ti2 ) const
inline

Return true when the first window ends before the second window starts.

20 {
21 return (ti1.end < ti2.start);
22 };
double start
Definition TimeWindow.h:17
double end
Definition TimeWindow.h:21

References mspass::algorithms::TimeWindow::end, and mspass::algorithms::TimeWindow::start.


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