#ifndef CACHED_SHORTEST_SEQUENCES_H #define CACHED_SHORTEST_SEQUENCES_H #include #include #include #include #include #include "segmented_sequences.h" class CachedShortestSequences { private: std::map> cache_; std::map> segmented_cache_; public: std::shared_ptr Find( std::string_view code, std::function(char, char)> apply_cmd); std::shared_ptr Find( std::shared_ptr codes, std::function(char, char)> apply_cmd); }; #endif