aboutsummaryrefslogtreecommitdiffstats
path: root/vdslib/src/vespa/vdslib/state/node.h
diff options
context:
space:
mode:
Diffstat (limited to 'vdslib/src/vespa/vdslib/state/node.h')
-rw-r--r--vdslib/src/vespa/vdslib/state/node.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/vdslib/src/vespa/vdslib/state/node.h b/vdslib/src/vespa/vdslib/state/node.h
index 5dfd6a2ccf4..49c8f0e641b 100644
--- a/vdslib/src/vespa/vdslib/state/node.h
+++ b/vdslib/src/vespa/vdslib/state/node.h
@@ -22,6 +22,7 @@ public:
const NodeType& getType() const noexcept { return *_type; }
uint16_t getIndex() const noexcept { return _index; }
+ uint32_t hash() const noexcept { return (_index << 1) | *_type; }
bool operator==(const Node& other) const noexcept {
return (other._index == _index && *other._type == *_type);