![]() |
RMVL
1.5.0
Robotic Manipulation and Vision Library
|
#include <rmvl/rmvl_modules.hpp>#include <cstdint>#include <cstdio>#include <string>#include "rmvldef.hpp"类 | |
| class | rm::Exception |
| 该类封装了有关程序中发生的错误的所有或几乎所有必要信息。异常通常是通过 RMVL_Error 和 RMVL_Error_ 宏隐式构造和抛出的 更多... | |
| struct | rm::reflect::helper::init |
| Constructor helper 更多... | |
| struct | rm::reflect::helper::size_tag< N > |
| struct | rm::reflect::helper::size_tag< 0 > |
| struct | rm::hash_aggregate< Tp, Enable > |
| 专为聚合类添加的 hash 生成可调用对象 更多... | |
| struct | rm::hash_traits< Tp, std::enable_if_t<!std::is_aggregate_v< Tp > > > |
| 非聚合类哈希生成函数类型 traits 更多... | |
| struct | rm::hash_traits< Tp, std::enable_if_t< std::is_aggregate_v< Tp > > > |
| 聚合类哈希生成函数类型 traits 更多... | |
命名空间 | |
| namespace | rm |
| namespace | rm::reflect |
| namespace | rm::reflect::helper |
宏定义 | |
| #define | HIGHLIGHT_(...) |
| #define | WARNING_(...) |
| #define | PASS_(...) |
| #define | ERROR_(...) |
| #define | INFO_(...) |
| #define | DEBUG_WARNING_(...) |
| #define | DEBUG_ERROR_(...) |
| #define | DEBUG_HIGHLIGHT_(...) |
| #define | DEBUG_INFO_(...) |
| #define | DEBUG_PASS_(...) |
| #define | RMVL_ERRHANDLE(...) |
| #define | RMVL_Error(code, msg) |
| 调用错误处理程序 | |
| #define | RMVL_Error_(code, fmt, ...) |
| 调用错误处理程序 | |
| #define | RMVL_Assert(expr) |
| 在运行时检查条件,如果失败则抛出异常 | |
| #define | RMVL_DbgAssert(expr) |
| 在 Debug 条件下或启用静态分析工具的情况下,在运行时检查条件,如果失败则抛出异常 | |
枚举 | |
| enum | RMVLErrorCode : int { RMVL_StsOk = 0 , RMVL_StsBackTrace = -1 , RMVL_StsError = -2 , RMVL_StsNoMem = -3 , RMVL_StsBadArg = -4 , RMVL_StsBadSize = -5 , RMVL_StsNullPtr = -6 , RMVL_StsNotaNumber = -7 , RMVL_StsDivByZero = -8 , RMVL_StsOutOfRange = -9 , RMVL_StsAssert = -10 , RMVL_StsInvFmt = -11 , RMVL_BadDynamicType = -12 } |
| RMVL 错误码 更多... | |
函数 | |
| std::string | rm::format (const char *fmt,...) |
返回使用类 printf 表达式格式化的文本字符串。 | |
| void | rm::breakOnError () |
| 触发非法内存操作 | |
| void | rm::throwError (const Exception &exc) |
| 抛出异常 | |
| void | rm::error (int _code, std::string_view _err, const char *_func, const char *_file, int _line) |
| 发出错误信号并引发异常 | |
| const char * | rm::getBuildInformation () |
| 返回完整的配置输出 | |
| template<typename Tp > | |
| consteval std::size_t | rm::reflect::size (auto &&...args) |
| 获取指定类型的成员个数 | |
| template<typename Tp , typename Callable > | |
| void | rm::reflect::for_each (Tp &&val, Callable &&f) |
| 遍历聚合类的每一个数据成员 | |
| template<typename Tp > | |
| bool | rm::reflect::equal (const Tp &lhs, const Tp &rhs) |
| 判断两个聚合类数据是否相同 | |
1.12.0