CommRaT 2.0.0
C++20 Real-Time Messaging Framework
Loading...
Searching...
No Matches
timestamped_ring_buffer.hpp File Reference

Thread-safe timestamped ring buffer for multi-input synchronization (Phase 6) More...

#include <commrat/platform/threading.hpp>
#include <commrat/platform/timestamp.hpp>
#include <commrat/messages.hpp>
#include <sertial/containers/ring_buffer.hpp>
#include <optional>
#include <cmath>
#include <algorithm>

Go to the source code of this file.

Classes

struct  commrat::TimestampAccessor< T >
 Trait to access timestamp from different message types. More...
 
struct  commrat::TimestampAccessor< TimsMessage< PayloadT > >
 
class  commrat::TimestampedRingBuffer< T, MaxSize >
 Thread-safe timestamped ring buffer with getData lookup. More...
 

Namespaces

namespace  commrat
 CommRaT - Modern C++ Real-Time Communication Framework.
 

Enumerations

enum class  commrat::InterpolationMode { commrat::NEAREST , commrat::BEFORE , commrat::AFTER , commrat::INTERPOLATE }
 Interpolation mode for timestamp-based lookup. More...
 

Detailed Description

Thread-safe timestamped ring buffer for multi-input synchronization (Phase 6)

Extends SeRTial's RingBuffer with timestamp-based lookup for synchronized getData. Used by HistoricalMailbox to store message history for secondary inputs.

Author
CommRaT Development Team
Date
February 8, 2026

Definition in file timestamped_ring_buffer.hpp.