libxr
1.0
Want to be the best embedded framework
|
#include <app_framework.hpp>
Data Structures | |
struct | AliasEntry |
Public Member Functions | |
template<typename... Entries> | |
constexpr | HardwareContainer (Entries &&... entries) |
template<typename T > | |
T * | Find (const char *alias) const |
template<typename T > | |
T * | Find (std::initializer_list< const char * > aliases) const |
template<typename T > | |
T * | FindOrExit (std::initializer_list< const char * > aliases) const |
template<typename T > | |
void | Register (const Entry< T > &entry) |
注册一个硬件条目 | |
Protected Attributes | |
LibXR::LockFreeList | alias_list_ |
硬件容器类 / Hardware container
Definition at line 26 of file app_framework.hpp.
|
inlineconstexpr |
构造并注册所有别名 / Construct and register aliases
entries | 硬件条目列表 / Hardware entry list |
Definition at line 34 of file app_framework.hpp.
|
inline |
查找设备(单个别名) / Find device by alias
Definition at line 43 of file app_framework.hpp.
|
inline |
查找设备(多个别名) / Find device with fallback aliases
Definition at line 63 of file app_framework.hpp.
|
inline |
查找或报错 / Find or ASSERT if not found
Definition at line 79 of file app_framework.hpp.
|
inline |
注册一个硬件条目
Register a hardware entry
Definition at line 92 of file app_framework.hpp.
|
mutableprotected |
Definition at line 111 of file app_framework.hpp.