From eec398dbb5a8963052bfb53e8ea67cd369f515e7 Mon Sep 17 00:00:00 2001 From: Sylvester Joosten <sjoosten@anl.gov> Date: Sun, 3 Oct 2021 17:48:54 +0000 Subject: [PATCH] Support eic::Index to be used as map key value --- .gitlab-ci.yml | 2 ++ eic_data.yaml | 2 ++ 2 files changed, 4 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index a1ec371..454e594 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -12,6 +12,8 @@ workflow: default: before_script: - mkdir -p images && mkdir -p doc/ + tags: + - phy artifacts: paths: - images/ diff --git a/eic_data.yaml b/eic_data.yaml index a95c1f1..1b4a53e 100644 --- a/eic_data.yaml +++ b/eic_data.yaml @@ -43,6 +43,8 @@ components: bool equals(const eic::Index& rhs) const {return rhs.source == source && rhs.value == value;}\n bool operator==(const eic::Index& rhs) const {return equals(rhs);}\n bool operator!=(const eic::Index& rhs) const {return !equals(rhs);}\n + bool operator<(const eic::Index& rhs) const {return long_form() < rhs.long_form();}\n + int64_t long_form() const {int64_t l = static_cast<int64_t>(source) << 32 | value; return l;}\n explicit operator bool() const {return valid();} " -- GitLab