![]() |
CommRaT 2.0.0
C++20 Real-Time Messaging Framework
|
Mixin providing input metadata accessor methods. More...
#include <commrat/module/metadata/input_metadata_accessors.hpp>
Classes | |
| struct | InputMetadata |
| Input metadata structure returned by accessor methods. More... | |
Public Member Functions | |
| template<std::size_t Index> | |
| auto | get_input_metadata () const |
| template<std::size_t Index> | |
| uint64_t | get_input_timestamp () const |
| Get input timestamp by index (convenience method) | |
| template<std::size_t Index> | |
| bool | has_new_data () const |
| Check if input has new data by index. | |
| template<std::size_t Index> | |
| bool | is_input_valid () const |
| Check if input is valid by index. | |
| template<typename T > requires (ModuleType::num_inputs > 1) | |
| auto | get_input_metadata () const |
| template<typename T > requires (ModuleType::num_inputs > 1) | |
| uint64_t | get_input_timestamp () const |
| Get input timestamp by type (convenience method) | |
| template<typename T > requires (ModuleType::num_inputs > 1) | |
| bool | has_new_data () const |
| Check if input has new data by type. | |
| template<typename T > requires (ModuleType::num_inputs > 1) | |
| bool | is_input_valid () const |
| Check if input is valid by type. | |
Protected Member Functions | |
| ModuleType & | module () |
| const ModuleType & | module () const |
Mixin providing input metadata accessor methods.
CRTP base class that provides metadata accessors for modules with inputs. Access patterns:
| ModuleType | The derived Module class (CRTP pattern) |
Definition at line 29 of file input_metadata_accessors.hpp.
|
inline |
Definition at line 78 of file input_metadata_accessors.hpp.
References commrat::InputMetadataAccessors< ModuleType >::module(), and commrat::InputMetadataAccessors< ModuleType >::InputMetadata< T >::timestamp.
|
inline |
Definition at line 166 of file input_metadata_accessors.hpp.
References commrat::find_type_index().
|
inline |
Get input timestamp by index (convenience method)
| Index | The input index |
Definition at line 105 of file input_metadata_accessors.hpp.
References commrat::InputMetadataAccessors< ModuleType >::module().
|
inline |
Get input timestamp by type (convenience method)
Definition at line 181 of file input_metadata_accessors.hpp.
References commrat::find_type_index().
|
inline |
Check if input has new data by index.
For multi-input modules, returns true if the input was freshly received and not reused from history (timestamp matches primary). For single-input modules, always returns true.
| Index | The input index |
Definition at line 122 of file input_metadata_accessors.hpp.
References commrat::InputMetadataAccessors< ModuleType >::module().
|
inline |
Check if input has new data by type.
Definition at line 196 of file input_metadata_accessors.hpp.
References commrat::find_type_index().
|
inline |
Check if input is valid by index.
For multi-input modules, returns true if getData succeeded. For single-input modules, always returns true (receive succeeded).
| Index | The input index |
Definition at line 138 of file input_metadata_accessors.hpp.
References commrat::InputMetadataAccessors< ModuleType >::module().
|
inline |
Check if input is valid by type.
Definition at line 210 of file input_metadata_accessors.hpp.
References commrat::find_type_index().
|
inlineprotected |
Definition at line 32 of file input_metadata_accessors.hpp.
Referenced by commrat::InputMetadataAccessors< ModuleType >::get_input_metadata(), commrat::InputMetadataAccessors< ModuleType >::get_input_timestamp(), commrat::InputMetadataAccessors< ModuleType >::has_new_data(), and commrat::InputMetadataAccessors< ModuleType >::is_input_valid().
|
inlineprotected |
Definition at line 33 of file input_metadata_accessors.hpp.