aboutsummaryrefslogtreecommitdiff
path: root/ui.qt/source/knowledgefragment.hpp
diff options
context:
space:
mode:
authorrtk0c <[email protected]>2022-06-27 00:14:58 +0000
committerrtk0c <[email protected]>2022-06-27 00:14:58 +0000
commit3250fc72f906797f113855cf9dde4e7803a66bd9 (patch)
tree2e270e38e6578738ffd9e91b7d5aaa9b4db545cb /ui.qt/source/knowledgefragment.hpp
parent8a23aa89a58d3a90d5851b449b5552e1fcdcaded (diff)
(From git) Reformat qt ui project
git-svn-id: file:///home/arch/svn/epistmool/trunk@5 71f44415-077c-4ad7-a976-72ddbf76608f
Diffstat (limited to 'ui.qt/source/knowledgefragment.hpp')
-rw-r--r--ui.qt/source/knowledgefragment.hpp38
1 files changed, 0 insertions, 38 deletions
diff --git a/ui.qt/source/knowledgefragment.hpp b/ui.qt/source/knowledgefragment.hpp
deleted file mode 100644
index 533d99f..0000000
--- a/ui.qt/source/knowledgefragment.hpp
+++ /dev/null
@@ -1,38 +0,0 @@
-#pragma once
-
-#include "fwd.hpp"
-
-#include <QDateTime>
-#include <cstddef>
-#include <vector>
-
-struct KnowledgeId
-{
- size_t id;
-};
-
-class KnowledgeFragment
-{
-private:
- QDateTime createTime;
- QDateTime modifyTime;
- KnowledgeId id;
-
-public:
- KnowledgeFragment(KnowledgeId id);
-
- KnowledgeId getId() const;
-};
-
-class KnowledgeDatabase
-{
-private:
- std::vector<KnowledgeFragment> storage;
- std::vector<size_t> index; // Mapping from KnowledgeId (index) to `storage` index
- KnowledgeId nextId;
-
-public:
- KnowledgeId allocateFragment();
- bool deleteFragment(KnowledgeId id);
- KnowledgeFragment* getFragment(KnowledgeId id);
-};