DoubleBuffer Class
Abstract base class for type-erased message buffers. More...
Declaration
Derived Classes
| class | ReadWriteDoubleBuffer<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
| void | swap ()=0 |
|
Swaps the read and write buffers. More... | |
| void | clearReadBuffer ()=0 |
|
Clears all messages from the read buffer. More... | |
| void | clearWriteBuffer ()=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()
| default |
Definition at line 27 of file DoubleBuffer.ixx.
Public Destructor
~DoubleBuffer()
| virtual default |
Definition at line 29 of file DoubleBuffer.ixx.
Public Member Functions
clearReadBuffer()
|
Clears all messages from the read buffer.
Definition at line 42 of file DoubleBuffer.ixx.
clearWriteBuffer()
|
Clears all messages from the write buffer.
Definition at line 47 of file DoubleBuffer.ixx.
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.