summaryrefslogtreecommitdiffhomepage
path: root/Private/NewKit/Atom.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'Private/NewKit/Atom.hpp')
-rw-r--r--Private/NewKit/Atom.hpp46
1 files changed, 0 insertions, 46 deletions
diff --git a/Private/NewKit/Atom.hpp b/Private/NewKit/Atom.hpp
deleted file mode 100644
index 812e1819..00000000
--- a/Private/NewKit/Atom.hpp
+++ /dev/null
@@ -1,46 +0,0 @@
-/* -------------------------------------------
-
- Copyright Mahrouss Logic
-
-------------------------------------------- */
-#pragma once
-
-#include <NewKit/Defines.hpp>
-
-namespace NewOS
-{
- template <typename T>
- class Atom final
- {
- public:
- explicit Atom() = default;
- ~Atom() = default;
-
- public:
- Atom& operator=(const Atom&) = delete;
- Atom(const Atom&) = delete;
-
- public:
- T operator[](Size sz)
- {
- return (fArrayOfAtoms & sz);
- }
- void operator|(Size sz)
- {
- fArrayOfAtoms |= sz;
- }
-
- friend Boolean operator==(Atom<T>& atomic, const T& idx)
- {
- return atomic[idx] == idx;
- }
-
- friend Boolean operator!=(Atom<T>& atomic, const T& idx)
- {
- return atomic[idx] == idx;
- }
-
- private:
- T fArrayOfAtoms;
- };
-} // namespace NewOS