Apollo 11.0
自动驾驶开放平台
apollo::perception::lib::Any类 参考

#include <registerer.h>

apollo::perception::lib::Any 的协作图:

Public 成员函数

 Any ()
 
template<typename ValueType >
 Any (const ValueType &value)
 
 Any (const Any &other)
 
 ~Any ()
 
template<typename ValueType >
ValueType * AnyCast ()
 

详细描述

在文件 registerer.h30 行定义.

构造及析构函数说明

◆ Any() [1/3]

apollo::perception::lib::Any::Any ( )
inline

在文件 registerer.h32 行定义.

32: content_(NULL) {}

◆ Any() [2/3]

template<typename ValueType >
apollo::perception::lib::Any::Any ( const ValueType &  value)
inlineexplicit

在文件 registerer.h35 行定义.

36 : content_(new Holder<ValueType>(value)) {}

◆ Any() [3/3]

apollo::perception::lib::Any::Any ( const Any other)
inline

在文件 registerer.h38 行定义.

39 : content_(other.content_ ? other.content_->Clone() : nullptr) {}

◆ ~Any()

apollo::perception::lib::Any::~Any ( )
inline

在文件 registerer.h41 行定义.

41{ delete content_; }

成员函数说明

◆ AnyCast()

template<typename ValueType >
ValueType * apollo::perception::lib::Any::AnyCast ( )
inline

在文件 registerer.h44 行定义.

44 {
45 return content_ ? &(static_cast<Holder<ValueType> *>(content_)->held_)
46 : nullptr;
47 }

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