JaffarPlus
High-performance best-first search optimizer for tool-assisted speedruns
Loading...
Searching...
No Matches
inputHistoryNone.hpp
Go to the documentation of this file.
1#pragma once
2
9#include "inputHistory.hpp"
10
11namespace jaffarPlus
12{
13
15class InputHistoryNone final : public InputHistory
16{
17public:
18 void reset() override {}
19 void pushInput(const size_t /*stepCount*/, const InputSet::inputIndex_t /*input*/) override {}
20
21 void serializeCold(jaffarCommon::serializer::Base& /*s*/) const override {}
22 void deserializeCold(jaffarCommon::deserializer::Base& /*d*/) override {}
23 void serializeFull(jaffarCommon::serializer::Base& /*s*/) const override {}
24 void deserializeFull(jaffarCommon::deserializer::Base& /*d*/, const size_t /*stepCount*/) override {}
25
26 std::string toString(const std::map<InputSet::inputIndex_t, std::string>& /*m*/, const size_t /*stepCount*/) const override { return ""; }
27
28 size_t getColdSize() const override { return 0; }
29 size_t getFullSize() const override { return 0; }
30
31 void captureColdToFull(const void* /*cold*/, void* /*full*/) const override {}
32};
33
34} // namespace jaffarPlus
Records nothing; smallest per-state footprint (the runner's count alone), no solution reconstruction.
void deserializeCold(jaffarCommon::deserializer::Base &) override
Restores the cursor from a "cold" representation (the count is restored by the runner).
void serializeCold(jaffarCommon::serializer::Base &) const override
Writes the compact "cold" path representation (stored in each StateDb slot), excluding the count.
size_t getColdSize() const override
Size, in bytes, of the cold path representation in a StateDb slot (EXCLUDING the runner's count).
void pushInput(const size_t, const InputSet::inputIndex_t) override
Records one applied input at path position stepCount (the runner's current step counter).
std::string toString(const std::map< InputSet::inputIndex_t, std::string > &, const size_t) const override
Reconstructs the path as a newline-separated string of input strings (the solution).
size_t getFullSize() const override
Size, in bytes, of the full (self-contained) path representation in a snapshot buffer (EXCLUDING the ...
void captureColdToFull(const void *, void *) const override
Converts a stored cold path into a self-contained full one (best/worst snapshot).
void reset() override
Resets the cursor to the empty path.
void serializeFull(jaffarCommon::serializer::Base &) const override
Writes the self-contained "full" path representation (for standalone snapshot buffers),...
void deserializeFull(jaffarCommon::deserializer::Base &, const size_t) override
Restores the cursor from a "full" representation.
Abstract strategy for remembering the input path that produced each search state.
size_t inputIndex_t
Type used to index an input.
Definition inputSet.hpp:29
Abstract interface for how a search remembers the sequence of inputs ("path") that produced each stat...