22 #ifndef DBA_MEMDB_LTR_H
23 #define DBA_MEMDB_LTR_H
25 #include <dballe/memdb/valuestorage.h>
26 #include <dballe/memdb/index.h>
42 : level(level), trange(trange) {}
44 bool operator<(
const LevTr& o)
const {
return compare(o) < 0; }
45 bool operator>(
const LevTr& o)
const {
return compare(o) > 0; }
46 bool operator==(
const LevTr& o)
const {
return level == o.level && trange == o.trange; }
47 bool operator!=(
const LevTr& o)
const {
return level != o.level || trange != o.trange; }
57 if (
int res = level.
compare(o.level))
return res;
58 return trange.
compare(o.trange);
83 void dump(FILE* out)
const;
Station information.
Definition: levtr.h:36
int compare(const LevTr &o) const
Compare two LevTr strutures, for use in sorting.
Definition: levtr.h:55
Storage and index for station information.
Definition: levtr.h:63
DB-All.E record.
Definition: record.h:102
size_t obtain(const Level &level, const Trange &trange)
Get a LevTr record.
int compare(const Level &l) const
Compare two Level strutures, for use in sorting.
Definition: defs.h:90
int compare(const Trange &t) const
Compare two Trange strutures, for use in sorting.
Definition: defs.h:145
Index element positions based by one value.
Definition: index.h:41
void query(const Record &rec, Results< LevTr > &res) const
Query levtrs returning the IDs.
Definition: mem/cursor.h:35