AuboStudio SDK  0.6.3
arcs::aubo_scope::Variable类 参考

\chinese 变量接口 表示 AuboScope 中的变量。变量可用于在程序中存储和传递数据。 \endchinese \english Variable Represents a variable in AuboScope. 更多...

#include <variable.h>

类 arcs::aubo_scope::Variable 继承关系图:

Public 类型

enum  Type : int { GLOBAL , VALUE_PERSISTED , FEATURE }
 The variable type used to determine which type of variable this instance is. 更多...

Public 成员函数

 Variable (Variable &f)
 Variable (Variable &&f)
virtual ~Variable ()
Type getType ()
 \chinese 获取变量类型
std::string getDisplayName ()
 \chinese 获取变量显示名称。注意:变量可随时被重命名。
bool equals (VariablePtr object)
 \chinese 判断是否引用相同的内部变量
size_t hashCode ()
 \chinese 获取哈希码
std::string toString ()
 \chinese 获取变量的字符串表示

Protected 成员函数

 Variable ()

Private 属性

void * d_ { nullptr }

友元

class DataSwitch

详细描述

\chinese 变量接口 表示 AuboScope 中的变量。变量可用于在程序中存储和传递数据。 \endchinese \english Variable Represents a variable in AuboScope.

Variables can be used to store and pass data in programs. \endenglish

在文件 variable.h24 行定义.

成员枚举类型说明

◆ Type

The variable type used to determine which type of variable this instance is.

枚举值
GLOBAL 

GLOBAL means that the variable is available everywhere in a program.

This variable instance can be cast to GlobalVariable.

VALUE_PERSISTED 

VALUE_PERSISTED means that the variable is stored with the installation. These variables are defined in the installation and will retain their values even when a robot is turned off and on.

This variable instance can be cast to ValuePersistedVariable.

FEATURE 

FEATURE means that a Feature is marked as a variable. The variable is defined in the installation and will exist even when a robot is turned off and on.

This variable instance can be cast to FeatureVariable.

在文件 variable.h35 行定义.

构造及析构函数说明

◆ Variable() [1/3]

arcs::aubo_scope::Variable::Variable ( Variable & f)

引用了 Variable().

被这些函数引用 Variable() , 以及 Variable().

函数调用图:
这是这个函数的调用关系图:

◆ Variable() [2/3]

arcs::aubo_scope::Variable::Variable ( Variable && f)

引用了 Variable().

函数调用图:

◆ ~Variable()

virtual arcs::aubo_scope::Variable::~Variable ( )
virtual

◆ Variable() [3/3]

arcs::aubo_scope::Variable::Variable ( )
protected

成员函数说明

◆ equals()

bool arcs::aubo_scope::Variable::equals ( VariablePtr object)

\chinese 判断是否引用相同的内部变量

返回
如果对象引用相同的内部变量返回true。 \endchinese \english Checks if the object references the same internal Variable.
true if object references the same internal Variable. \endenglish

◆ getDisplayName()

std::string arcs::aubo_scope::Variable::getDisplayName ( )

\chinese 获取变量显示名称。注意:变量可随时被重命名。

返回
变量显示名称。 \endchinese \english Note: The variable can be renamed at any time.
the display name of the variable. \endenglish

◆ getType()

Type arcs::aubo_scope::Variable::getType ( )

\chinese 获取变量类型

返回
变量类型枚举。 \endchinese \english Returns the type of variable.
the type of variable. \endenglish

◆ hashCode()

size_t arcs::aubo_scope::Variable::hashCode ( )

\chinese 获取哈希码

返回
此对象的哈希码。 \endchinese \english Returns the hash code for this object.
hashCode for this object. \endenglish

◆ toString()

std::string arcs::aubo_scope::Variable::toString ( )

\chinese 获取变量的字符串表示

返回
变量的字符串表示。 \endchinese \english Returns a string representation of the variable.
a string representation of the variable. \endenglish

◆ DataSwitch

friend class DataSwitch
friend

在文件 variable.h139 行定义.

引用了 DataSwitch.

被这些函数引用 DataSwitch.

类成员变量说明

◆ d_

void* arcs::aubo_scope::Variable::d_ { nullptr }
private

在文件 variable.h140 行定义.


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