diff --git a/src/clp_ffi_js/ir/StreamReader.cpp b/src/clp_ffi_js/ir/StreamReader.cpp index ea015a35..4df84aaa 100644 --- a/src/clp_ffi_js/ir/StreamReader.cpp +++ b/src/clp_ffi_js/ir/StreamReader.cpp @@ -149,7 +149,7 @@ EMSCRIPTEN_BINDINGS(ClpStreamReader) { .function("decodeRange", &clp_ffi_js::ir::StreamReader::decode_range) .function( "getLogEventIndexByTimestamp", - &clp_ffi_js::ir::StreamReader::get_log_event_index_by_timestamp + &clp_ffi_js::ir::StreamReader::get_log_event_idx_by_timestamp ); } } // namespace diff --git a/src/clp_ffi_js/ir/StreamReader.hpp b/src/clp_ffi_js/ir/StreamReader.hpp index 13ba01a6..449389bd 100644 --- a/src/clp_ffi_js/ir/StreamReader.hpp +++ b/src/clp_ffi_js/ir/StreamReader.hpp @@ -152,7 +152,7 @@ class StreamReader { * @return `0` if all log event timestamps are larger than the target. * @return null if no log event exists in the stream. */ - [[nodiscard]] virtual auto get_log_event_index_by_timestamp(clp::ir::epoch_time_ms_t timestamp + [[nodiscard]] virtual auto get_log_event_idx_by_timestamp(clp::ir::epoch_time_ms_t timestamp ) -> LogEventIdxTsType = 0; protected: @@ -200,14 +200,14 @@ class StreamReader { ) -> void; /** - * Templated implementation of `get_log_event_index_by_timestamp`. + * Templated implementation of `get_log_event_idx_by_timestamp`. * * @tparam LogEvent * @param timestamp * event timestamps are larger than the target. In that case, return the first log event index. */ template - auto generic_get_log_event_index_by_timestamp( + auto generic_get_log_event_idx_by_timestamp( std::vector> const& log_events, clp::ir::epoch_time_ms_t timestamp ) -> LogEventIdxTsType; @@ -295,7 +295,7 @@ auto StreamReader::generic_filter_log_events( } template -auto StreamReader::generic_get_log_event_index_by_timestamp( +auto StreamReader::generic_get_log_event_idx_by_timestamp( LogEvents const& log_events, clp::ir::epoch_time_ms_t timestamp ) -> LogEventIdxTsType { diff --git a/src/clp_ffi_js/ir/StructuredIrStreamReader.cpp b/src/clp_ffi_js/ir/StructuredIrStreamReader.cpp index 64aa1ba9..74d5a9f1 100644 --- a/src/clp_ffi_js/ir/StructuredIrStreamReader.cpp +++ b/src/clp_ffi_js/ir/StructuredIrStreamReader.cpp @@ -148,10 +148,10 @@ auto StructuredIrStreamReader::decode_range(size_t begin_idx, size_t end_idx, bo ); } -auto StructuredIrStreamReader::get_log_event_index_by_timestamp( +auto StructuredIrStreamReader::get_log_event_idx_by_timestamp( clp::ir::epoch_time_ms_t const timestamp ) -> LogEventIdxTsType { - return generic_get_log_event_index_by_timestamp( + return generic_get_log_event_idx_by_timestamp( *m_deserialized_log_events, timestamp ); diff --git a/src/clp_ffi_js/ir/StructuredIrStreamReader.hpp b/src/clp_ffi_js/ir/StructuredIrStreamReader.hpp index 28a68a0e..8abb5223 100644 --- a/src/clp_ffi_js/ir/StructuredIrStreamReader.hpp +++ b/src/clp_ffi_js/ir/StructuredIrStreamReader.hpp @@ -75,7 +75,7 @@ class StructuredIrStreamReader : public StreamReader { [[nodiscard]] auto decode_range(size_t begin_idx, size_t end_idx, bool use_filter) const -> DecodedResultsTsType override; - [[nodiscard]] auto get_log_event_index_by_timestamp(clp::ir::epoch_time_ms_t timestamp + [[nodiscard]] auto get_log_event_idx_by_timestamp(clp::ir::epoch_time_ms_t timestamp ) -> LogEventIdxTsType override; private: diff --git a/src/clp_ffi_js/ir/UnstructuredIrStreamReader.cpp b/src/clp_ffi_js/ir/UnstructuredIrStreamReader.cpp index 5ad02b70..187ed425 100644 --- a/src/clp_ffi_js/ir/UnstructuredIrStreamReader.cpp +++ b/src/clp_ffi_js/ir/UnstructuredIrStreamReader.cpp @@ -158,10 +158,10 @@ auto UnstructuredIrStreamReader::decode_range(size_t begin_idx, size_t end_idx, ); } -auto UnstructuredIrStreamReader::get_log_event_index_by_timestamp( +auto UnstructuredIrStreamReader::get_log_event_idx_by_timestamp( clp::ir::epoch_time_ms_t const timestamp ) -> LogEventIdxTsType { - return generic_get_log_event_index_by_timestamp( + return generic_get_log_event_idx_by_timestamp( m_encoded_log_events, timestamp ); diff --git a/src/clp_ffi_js/ir/UnstructuredIrStreamReader.hpp b/src/clp_ffi_js/ir/UnstructuredIrStreamReader.hpp index 4b6ae92d..2fb8bc26 100644 --- a/src/clp_ffi_js/ir/UnstructuredIrStreamReader.hpp +++ b/src/clp_ffi_js/ir/UnstructuredIrStreamReader.hpp @@ -71,7 +71,7 @@ class UnstructuredIrStreamReader : public StreamReader { [[nodiscard]] auto decode_range(size_t begin_idx, size_t end_idx, bool use_filter) const -> DecodedResultsTsType override; - [[nodiscard]] auto get_log_event_index_by_timestamp(clp::ir::epoch_time_ms_t timestamp + [[nodiscard]] auto get_log_event_idx_by_timestamp(clp::ir::epoch_time_ms_t timestamp ) -> LogEventIdxTsType override; private: