Apollo 10.0
自动驾驶开放平台
apollo::drivers::lidar::LivoxObserableBinder< FuncArgs > 模板类 参考

#include <livox_obserable_binder.h>

apollo::drivers::lidar::LivoxObserableBinder< FuncArgs > 的协作图:

Public 类型

using FuncType = std::shared_ptr< std::function< void(FuncArgs...)> >
 

静态 Public 成员函数

static void Callback (FuncArgs... args)
 
static void RegisterCallback (FuncType func)
 

静态 Public 属性

static FuncType func_cb_ = nullptr
 

详细描述

template<typename... FuncArgs>
class apollo::drivers::lidar::LivoxObserableBinder< FuncArgs >

在文件 livox_obserable_binder.h30 行定义.

成员类型定义说明

◆ FuncType

template<typename... FuncArgs>
using apollo::drivers::lidar::LivoxObserableBinder< FuncArgs >::FuncType = std::shared_ptr<std::function<void(FuncArgs...)> >

在文件 livox_obserable_binder.h32 行定义.

成员函数说明

◆ Callback()

template<typename... FuncArgs>
void apollo::drivers::lidar::LivoxObserableBinder< FuncArgs >::Callback ( FuncArgs...  args)
static

在文件 livox_obserable_binder.h41 行定义.

41 {
42 if (func_cb_) {
43 (*func_cb_)(std::forward<FuncArgs>(args)...);
44 } else {
45 AERROR << "Binder callback is empty";
46 }
47}
#define AERROR
Definition log.h:44

◆ RegisterCallback()

template<typename... FuncArgs>
void apollo::drivers::lidar::LivoxObserableBinder< FuncArgs >::RegisterCallback ( LivoxObserableBinder< FuncArgs >::FuncType  func)
static

在文件 livox_obserable_binder.h50 行定义.

51 {
52 func_cb_ = std::move(func);
53}

类成员变量说明

◆ func_cb_

template<typename... FuncArgs>
std::shared_ptr< std::function< void(FuncArgs...)> > apollo::drivers::lidar::LivoxObserableBinder< FuncArgs >::func_cb_ = nullptr
static

在文件 livox_obserable_binder.h37 行定义.


该类的文档由以下文件生成: