Skip to main content

Model Class Template

Typed model that adapts a concrete buffer to the Concept interface. More...

Declaration

template <typename T> class helios::engine::runtime::messaging::command::CommandBuffer::Model<T> { ... }

Base class

classhelios::engine::runtime::messaging::command::CommandBuffer::Concept

Public Constructors Index

template <typename T>
Model (T cmdBuffer)

Public Member Functions Index

template <typename T>
voidflush (GameWorld &gameWorld, UpdateContext &updateContext) noexcept override
template <typename T>
voidclear () noexcept override
template <typename T>
void *underlying () noexcept override
template <typename T>
const void *underlying () const noexcept override

Private Member Attributes Index

template <typename T>
TcmdBuffer_

The owned command buffer instance. More...

Description

Typed model that adapts a concrete buffer to the Concept interface.

Template Parameters
T

The concrete command buffer type.

Definition at line 69 of file CommandBuffer.ixx.

Public Constructors

Model()

template <typename T>
helios::engine::runtime::messaging::command::CommandBuffer::Model< T >::Model (T cmdBuffer)
inline explicit

Definition at line 78 of file CommandBuffer.ixx.

78 explicit Model(T cmdBuffer) : cmdBuffer_(std::move(cmdBuffer)) {}

Public Member Functions

clear()

template <typename T>
void helios::engine::runtime::messaging::command::CommandBuffer::Model< T >::clear ()
inline noexcept

Definition at line 84 of file CommandBuffer.ixx.

84 void clear() noexcept override {
85 cmdBuffer_.clear();
86 }

flush()

template <typename T>
void helios::engine::runtime::messaging::command::CommandBuffer::Model< T >::flush (GameWorld & gameWorld, UpdateContext & updateContext)
inline noexcept

Definition at line 80 of file CommandBuffer.ixx.

80 void flush(GameWorld& gameWorld, UpdateContext& updateContext) noexcept override {
81 cmdBuffer_.flush(gameWorld, updateContext);
82 }

underlying()

template <typename T>
void * helios::engine::runtime::messaging::command::CommandBuffer::Model< T >::underlying ()
inline noexcept

Definition at line 88 of file CommandBuffer.ixx.

88 void* underlying() noexcept override {
89 return &cmdBuffer_;
90 }

underlying()

template <typename T>
const void * helios::engine::runtime::messaging::command::CommandBuffer::Model< T >::underlying ()
inline noexcept

Definition at line 92 of file CommandBuffer.ixx.

92 const void* underlying() const noexcept override {
93 return &cmdBuffer_;
94 }

Private Member Attributes

cmdBuffer_

template <typename T>
T helios::engine::runtime::messaging::command::CommandBuffer::Model< T >::cmdBuffer_

The owned command buffer instance.

Definition at line 74 of file CommandBuffer.ixx.

74 T cmdBuffer_;

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


Generated via doxygen2docusaurus 2.0.0 by Doxygen 1.15.0.