Skip to main content

DoubleBuffer Class

Abstract base class for type-erased message buffers. More...

Declaration

class helios::core::container::buffer::DoubleBuffer { ... }

Derived Classes

classReadWriteDoubleBuffer<T>

Type-safe double-buffered container for messages of type T. More...

Public Constructors Index

DoubleBuffer ()=default

Public Destructor Index

~DoubleBuffer ()=default

Public Member Functions Index

voidswap ()=0

Swaps the read and write buffers. More...

voidclearReadBuffer ()=0

Clears all messages from the read buffer. More...

voidclearWriteBuffer ()=0

Clears all messages from the write buffer. More...

Description

Abstract base class for type-erased message buffers.

Provides a common interface for buffer operations (swap, clear) without exposing the concrete message type. Used internally by TypeIndexedDoubleBuffer to manage heterogeneous message buffers in a single container.

Definition at line 24 of file DoubleBuffer.ixx.

Public Constructors

DoubleBuffer()

helios::core::container::buffer::DoubleBuffer::DoubleBuffer ()
default

Definition at line 27 of file DoubleBuffer.ixx.

Public Destructor

~DoubleBuffer()

virtual helios::core::container::buffer::DoubleBuffer::~DoubleBuffer ()
virtual default

Definition at line 29 of file DoubleBuffer.ixx.

Public Member Functions

clearReadBuffer()

virtual void helios::core::container::buffer::DoubleBuffer::clearReadBuffer ()

Clears all messages from the read buffer.

Definition at line 42 of file DoubleBuffer.ixx.

clearWriteBuffer()

virtual void helios::core::container::buffer::DoubleBuffer::clearWriteBuffer ()

Clears all messages from the write buffer.

Definition at line 47 of file DoubleBuffer.ixx.

swap()

virtual void helios::core::container::buffer::DoubleBuffer::swap ()

Swaps the read and write buffers.

Clears the current read buffer, then exchanges it with the write buffer. After this call, previously written messages become available for reading.

Definition at line 37 of file DoubleBuffer.ixx.


The documentation for this class was generated from the following file:


Generated via doxygen2docusaurus 2.0.0 by Doxygen 1.15.0.