summaryrefslogtreecommitdiff
path: root/modules/core/id.h
diff options
context:
space:
mode:
authorClaudius "keldu" Holeksa <mail@keldu.de>2023-12-04 12:20:01 +0100
committerClaudius "keldu" Holeksa <mail@keldu.de>2023-12-04 12:20:01 +0100
commitfb7ed24d557c9f9ac5eaa60dbf22cba509953c1a (patch)
treefd9da3393972d07bef6aafaaafe7e3c7b27184e0 /modules/core/id.h
parenta14896f9ed209dd3f9597722e5a5697bd7dbf531 (diff)
core: Moving structure around
Diffstat (limited to 'modules/core/id.h')
-rw-r--r--modules/core/id.h54
1 files changed, 0 insertions, 54 deletions
diff --git a/modules/core/id.h b/modules/core/id.h
deleted file mode 100644
index d836648..0000000
--- a/modules/core/id.h
+++ /dev/null
@@ -1,54 +0,0 @@
-#pragma once
-
-namespace saw {
-/**
- * ID class which is tied to it's representing class
- */
-template<typename T>
-class id {
-private:
- /**
- * Alias for the value type representing the ID
- */
- using type = uint64_t;
-
- /**
- * The low level value
- */
- type value_;
-public:
- /**
- * Basic constructor for the id class
- */
- id(type val):
- value_{val}
- {}
-
- SAW_DEFAULT_COPY(id);
- SAW_DEFAULT_MOVE(id);
-
- /**
- * Equal operator for the id.
- * Returns true if equal, false otherwise.
- */
- bool operator==(const id<T>& rhs) const {
- return value_ == rhs.value_;
- }
-
- /**
- * Unequal operator for the id.
- * Returns false if equal, true otherwise.
- */
- bool operator!=(const id<T>& rhs) const {
- return !(*this == rhs);
- }
-
- /**
- * Returns a const ref of the underlying base type.
- * Mostly used for internal purposes.
- */
- const type& get_value() const {
- return value_;
- }
-};
-}