Apollo 10.0
自动驾驶开放平台
apollo::cyber::PyParameter类 参考

#include <py_parameter.h>

apollo::cyber::PyParameter 的协作图:

Public 成员函数

 PyParameter ()
 
 PyParameter (Parameter *param)
 
 PyParameter (const std::string &name, const int64_t int_value)
 
 PyParameter (const std::string &name, const double double_value)
 
 PyParameter (const std::string &name, const std::string &string_value)
 
 PyParameter (const std::string &name, const std::string &msg_str, const std::string &full_name, const std::string &proto_desc)
 
uint type ()
 
std::string type_name ()
 
std::string descriptor ()
 
std::string name ()
 
int64_t as_int64 ()
 
double as_double ()
 
std::string as_string ()
 
std::string debug_string ()
 
Parameterget_param ()
 

详细描述

在文件 py_parameter.h35 行定义.

构造及析构函数说明

◆ PyParameter() [1/6]

apollo::cyber::PyParameter::PyParameter ( )
inline

在文件 py_parameter.h37 行定义.

37{}

◆ PyParameter() [2/6]

apollo::cyber::PyParameter::PyParameter ( Parameter param)
inlineexplicit

在文件 py_parameter.h38 行定义.

38: parameter_(*param) {}

◆ PyParameter() [3/6]

apollo::cyber::PyParameter::PyParameter ( const std::string &  name,
const int64_t  int_value 
)
inline

在文件 py_parameter.h40 行定义.

41 : parameter_(name, int_value) {}

◆ PyParameter() [4/6]

apollo::cyber::PyParameter::PyParameter ( const std::string &  name,
const double  double_value 
)
inline

在文件 py_parameter.h42 行定义.

43 : parameter_(name, double_value) {}

◆ PyParameter() [5/6]

apollo::cyber::PyParameter::PyParameter ( const std::string &  name,
const std::string &  string_value 
)
inline

在文件 py_parameter.h44 行定义.

45 : parameter_(name, string_value) {}

◆ PyParameter() [6/6]

apollo::cyber::PyParameter::PyParameter ( const std::string &  name,
const std::string &  msg_str,
const std::string &  full_name,
const std::string &  proto_desc 
)
inline

在文件 py_parameter.h46 行定义.

48 : parameter_(name, msg_str, full_name, proto_desc) {}

成员函数说明

◆ as_double()

double apollo::cyber::PyParameter::as_double ( )
inline

在文件 py_parameter.h59 行定义.

59{ return parameter_.AsDouble(); }
double AsDouble() const
et Paramter as a double value
Definition parameter.h:354

◆ as_int64()

int64_t apollo::cyber::PyParameter::as_int64 ( )
inline

在文件 py_parameter.h58 行定义.

58{ return parameter_.AsInt64(); }
int64_t AsInt64() const
Get Paramter as an int64_t value
Definition parameter.h:352

◆ as_string()

std::string apollo::cyber::PyParameter::as_string ( )
inline

在文件 py_parameter.h60 行定义.

60{ return parameter_.AsString(); }
const std::string AsString() const
Get Paramter as a string value
Definition parameter.h:356

◆ debug_string()

std::string apollo::cyber::PyParameter::debug_string ( )
inline

在文件 py_parameter.h61 行定义.

61{ return parameter_.DebugString(); }
std::string DebugString() const
show debug string
Definition parameter.cc:116

◆ descriptor()

std::string apollo::cyber::PyParameter::descriptor ( )
inline

在文件 py_parameter.h54 行定义.

54{ return parameter_.Descriptor(); }
std::string Descriptor() const
Get Paramter's descriptor, only work on protobuf types
Definition parameter.h:346

◆ get_param()

Parameter & apollo::cyber::PyParameter::get_param ( )
inline

在文件 py_parameter.h63 行定义.

63{ return parameter_; }

◆ name()

std::string apollo::cyber::PyParameter::name ( )
inline

在文件 py_parameter.h56 行定义.

56{ return parameter_.Name(); }
const std::string Name() const
Get the Parameter name
Definition parameter.h:348

◆ type()

uint apollo::cyber::PyParameter::type ( )
inline

在文件 py_parameter.h50 行定义.

50{ return parameter_.Type(); }
ParamType Type() const
Get the cyber:parameter::ParamType of this object
Definition parameter.h:342

◆ type_name()

std::string apollo::cyber::PyParameter::type_name ( )
inline

在文件 py_parameter.h52 行定义.

52{ return parameter_.TypeName(); }
std::string TypeName() const
Get Paramter's type name, i.e.
Definition parameter.h:344

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