TypeIndexedReadWriteBuffer.ixx File
Type-indexed single-buffered message system for immediate-access patterns. More...
Included Headers
#include <memory>
#include <span>
#include <vector>
#include <helios.core.container.buffer.ReadWriteBuffer>
#include <helios.core.container.buffer.Buffer>
#include <helios.core.data.TypeIndexer>
Namespaces Index
| namespace | helios |
| namespace | core |
|
Core utilities shared across the helios engine. More... | |
| namespace | container |
|
Generic container types shared across the engine. More... | |
| namespace | buffer |
|
Double-buffering infrastructure for thread-safe message passing. More... | |
Classes Index
| class | TypeIndexedReadWriteBuffer<Indexer> |
|
Type-indexed container for immediate-access message buffers. More... | |
Description
Type-indexed single-buffered message system for immediate-access patterns.
File Listing
The file content with the documentation metadata removed is:
19export namespace helios::core::container::buffer {
36 class TypeIndexedReadWriteBuffer {
60 ~TypeIndexedReadWriteBuffer() = default;
65 TypeIndexedReadWriteBuffer() = default;
77 getOrCreateBuffer<T>().push(std::forward<Args>(args)...);
99 return static_cast<ReadWriteBuffer<T>*>(buffers_[idx].get())->read();
113 getOrCreateBuffer<T>().reserve(size);
135 return *static_cast<ReadWriteBuffer<T>*>(buffers_[idx].get());
143 for (auto& buffer : buffers_) {
144 if (buffer) {
145 buffer->clear();
Generated via doxygen2docusaurus 2.0.0 by Doxygen 1.15.0.