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 (Entry< T > &&entry) |
注册一个硬件条目 | |
Private Attributes | |
LibXR::LockFreeList | alias_list_ |
硬件容器类 / Hardware container
Definition at line 27 of file app_framework.hpp.
|
inlineconstexpr |
构造并注册所有别名 / Construct and register aliases
entries | 硬件条目列表 / Hardware entry list |
Definition at line 35 of file app_framework.hpp.
|
inline |
查找设备(单个别名) / Find device by alias
Definition at line 44 of file app_framework.hpp.
|
inline |
查找设备(多个别名) / Find device with fallback aliases
Definition at line 64 of file app_framework.hpp.
|
inline |
查找或报错 / Find or ASSERT if not found
Definition at line 80 of file app_framework.hpp.
|
inline |
注册一个硬件条目
Register a hardware entry
Definition at line 93 of file app_framework.hpp.
|
mutableprivate |
Definition at line 112 of file app_framework.hpp.