version  0.0.1
Defines the C++ API for MsPASS
Loading...
Searching...
No Matches
Public Member Functions | List of all members
mspass::algorithms::greater_seedorder Struct Reference

Public Member Functions

bool operator() (TimeSeries x, TimeSeries y)
 

Member Function Documentation

◆ operator()()

bool mspass::algorithms::greater_seedorder::operator() ( TimeSeries  x,
TimeSeries  y 
)
inline
48 {
49 int retnet, retsta, retloc, retchan;
50 retnet = cautious_compare(x, y, SEISMICMD_net);
51 switch (retnet) {
52 case -1:
53 return false;
54 case +1:
55 return true;
56 case 0:
57 default:
58 retsta = cautious_compare(x, y, SEISMICMD_sta);
59 switch (retsta) {
60 case -1:
61 return false;
62 case +1:
63 return true;
64 case 0:
65 default:
66 retloc = cautious_compare(x, y, SEISMICMD_loc);
67 switch (retloc) {
68 case -1:
69 return false;
70 case +1:
71 return true;
72 case 0:
73 default:
74 retchan = cautious_compare(x, y, SEISMICMD_chan);
75 switch (retchan) {
76 case +1:
77 return true;
78 default:
79 /* Weak order as the final condition is strictly > so
80 equal case only here returns false */
81 return false;
82 };
83 };
84 };
85 };
86 };
const std::string SEISMICMD_net("net")
const std::string SEISMICMD_loc("loc")
const std::string SEISMICMD_sta("sta")
const std::string SEISMICMD_chan("chan")

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