From a4d4de6913fb7dd54847b0e5a004c3100bc02459 Mon Sep 17 00:00:00 2001 From: Amlal El Mahrouss Date: Sat, 16 Mar 2024 21:46:29 +0100 Subject: HCR-14: Reworked page allocator for AMD64. Signed-off-by: Amlal El Mahrouss --- Private/FSKit/Defines.hpp | 11 ------- Private/FSKit/Defines.hxx | 11 +++++++ Private/FSKit/NewFSIndexer.hxx | 51 -------------------------------- Private/FSKit/NewFSIteratorInterface.hxx | 51 ++++++++++++++++++++++++++++++++ 4 files changed, 62 insertions(+), 62 deletions(-) delete mode 100644 Private/FSKit/Defines.hpp create mode 100644 Private/FSKit/Defines.hxx delete mode 100644 Private/FSKit/NewFSIndexer.hxx create mode 100644 Private/FSKit/NewFSIteratorInterface.hxx (limited to 'Private/FSKit') diff --git a/Private/FSKit/Defines.hpp b/Private/FSKit/Defines.hpp deleted file mode 100644 index 73c422be..00000000 --- a/Private/FSKit/Defines.hpp +++ /dev/null @@ -1,11 +0,0 @@ -/* ------------------------------------------- - - Copyright Mahrouss Logic - -------------------------------------------- */ - -#pragma once - -#include - -#define FSKIT_VERSION "1.0.0" diff --git a/Private/FSKit/Defines.hxx b/Private/FSKit/Defines.hxx new file mode 100644 index 00000000..73c422be --- /dev/null +++ b/Private/FSKit/Defines.hxx @@ -0,0 +1,11 @@ +/* ------------------------------------------- + + Copyright Mahrouss Logic + +------------------------------------------- */ + +#pragma once + +#include + +#define FSKIT_VERSION "1.0.0" diff --git a/Private/FSKit/NewFSIndexer.hxx b/Private/FSKit/NewFSIndexer.hxx deleted file mode 100644 index 023ebdc0..00000000 --- a/Private/FSKit/NewFSIndexer.hxx +++ /dev/null @@ -1,51 +0,0 @@ -/* ------------------------------------------- - - Copyright Mahrouss Logic - -------------------------------------------- */ - -#pragma once - -#include -#include - -namespace HCore { -namespace Indexer { -class INewFSIterator; - -using IndexElement = VoidPtr; - -/// -/// @name INewFSIterator -/// @brief Stores relevant information for file indexing. -/// - -class INewFSIterator { - public: - explicit INewFSIterator() = default; - virtual ~INewFSIterator() = default; - - public: - HCORE_COPY_DEFAULT(INewFSIterator); - - public: - void Append(IndexableProperty& indexProp) { fProps.Add(indexProp); } - - MutableArray& Leak() { return fProps; } - - Boolean Find(IndexProperty& filters) { - for (size_t i = 0; i < fProps.Count(); ++i) { - if (StringBuilder::Equals(fProps[i].Leak().LeakProperty().Path, - filters.Path)) { - return i; - } - } - - return 0; - } - - private: - MutableArray fProps; -}; -} // namespace Indexer -} // namespace HCore diff --git a/Private/FSKit/NewFSIteratorInterface.hxx b/Private/FSKit/NewFSIteratorInterface.hxx new file mode 100644 index 00000000..0c7a6743 --- /dev/null +++ b/Private/FSKit/NewFSIteratorInterface.hxx @@ -0,0 +1,51 @@ +/* ------------------------------------------- + + Copyright Mahrouss Logic + +------------------------------------------- */ + +#pragma once + +#include +#include + +namespace HCore { +namespace Indexer { +class NewFSIteratorInterface; + +using IndexElement = VoidPtr; + +/// +/// @name NewFSIteratorInterface +/// @brief Stores relevant information for file indexing. +/// + +class NewFSIteratorInterface { + public: + explicit NewFSIteratorInterface() = default; + virtual ~NewFSIteratorInterface() = default; + + public: + HCORE_COPY_DEFAULT(NewFSIteratorInterface); + + public: + void Append(IndexableProperty& indexProp) { fProps.Add(indexProp); } + + MutableArray& Leak() { return fProps; } + + Boolean Find(IndexProperty& filters) { + for (size_t i = 0; i < fProps.Count(); ++i) { + if (StringBuilder::Equals(fProps[i].Leak().LeakProperty().Path, + filters.Path)) { + return i; + } + } + + return 0; + } + + private: + MutableArray fProps; +}; +} // namespace Indexer +} // namespace HCore -- cgit v1.2.3