Apollo 11.0
自动驾驶开放平台
apollo::perception::lib::ConfigRead< std::vector< T > > 模板类 参考

#include <config_manager.h>

apollo::perception::lib::ConfigRead< std::vector< T > > 的协作图:

静态 Public 成员函数

static std::vector< T > Read (const ModelConfig &config, const std::string &name)
 

详细描述

template<typename T>
class apollo::perception::lib::ConfigRead< std::vector< T > >

在文件 config_manager.h295 行定义.

成员函数说明

◆ Read()

template<typename T >
static std::vector< T > apollo::perception::lib::ConfigRead< std::vector< T > >::Read ( const ModelConfig config,
const std::string &  name 
)
inlinestatic

在文件 config_manager.h297 行定义.

298 {
299 std::vector<T> ret;
300 if (!config.get_value(name, &ret)) {
301 std::stringstream ss;
302 ss << "Config name:" << config.name() << " read failed. "
303 << "type:vector<" << typeid(T).name() << "> name:" << name;
304 throw ConfigManagerError(ss.str());
305 }
306 return std::move(ret);
307 }

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