ATLAS Offline Software
|
Comparison object needed by ConcurrentRangeMap. More...
#include <CondCont.h>
Public Member Functions | |
bool | operator() (const RangeKey &r1, const RangeKey &r2) const |
bool | operator() (key_type t, const RangeKey &r2) const |
bool | inRange (key_type t, const RangeKey &r) const |
int | overlap (const EventContext &ctx, const RangeKey &oldRange, RangeKey &newRange) const |
Test if two ranges overlap, and adjust if needed. More... | |
int | extendRange (RangeKey &range, const RangeKey &newRange) const |
Possibly extend an existing range at the end. More... | |
Comparison object needed by ConcurrentRangeMap.
Definition at line 449 of file CondCont.h.
Possibly extend an existing range at the end.
range | THe existing range. |
newRange | Range being added. |
Returns one of: 0 – no change was made to RANGE. 1 – RANGE was extended. -1 – newRange is a duplicate.
Definition at line 158 of file CondCont.cxx.
Definition at line 451 of file CondCont.h.
Definition at line 453 of file CondCont.h.
int CondContBase::Compare::overlap | ( | const EventContext & | ctx, |
const RangeKey & | oldRange, | ||
RangeKey & | newRange | ||
) | const |
Test if two ranges overlap, and adjust if needed.
ctx | Event context passed to emplace(). |
oldRange | An existing range in the container. |
newRange | New range being added. |
Returns one of: 0 – no overlap between the ranges; NEWRANGE is unmodified. 1 – ranges overlap. NEWRANGE has been adjusted to avoid the overlap. If the start of NEWRANGE is changed, it must only be moved forward (increased), never backwards. -1 – duplicate: NEWRANGE is entirely inside OLDRANGE. Delete the new range.
Definition at line 39 of file CondCont.cxx.