AuboStudio SDK
0.6.3
if_node.h
浏览该文件的文档.
1
#ifndef AUBO_SCOPE_IF_NODE_H
2
#define AUBO_SCOPE_IF_NODE_H
3
4
#include <
aubo_caps/domain/program/nodes/program_node.h
>
5
6
namespace
arcs
{
7
namespace
aubo_scope
{
8
ARCS_CLASS_FORWARD
(
Expression
);
9
ARCS_CLASS_FORWARD
(
IfNode
);
10
11
class
ARCS_ABI_EXPORT
IfNode
:
public
ProgramNode
12
{
13
public
:
14
IfNode
(
IfNode
&f);
15
IfNode
(
IfNode
&&f);
16
virtual
~IfNode
();
17
18
/**
19
* \chinese
20
* 设置节点使用的表达式。
21
* @param expression 将在 If 节点中求值的表达式
22
* @throws IllegalStateException 如果在 UndoableChanges 范围外调用
23
* \endchinese
24
* \english
25
* Sets the expression used by the node.
26
* @param expression The expression that will be evaluated in this If Node.
27
* @throws IllegalStateException if called from a Qt-based AuboCap
28
* outside of an {@link UndoableChanges} scope.
29
* \endenglish
30
*/
31
void
setExpression
(ExpressionPtr expression);
32
33
/**
34
* \chinese
35
* @return 在此 If 节点中求值的表达式
36
* \endchinese
37
* \english
38
* @return the Expression to be evaluated in this If node.
39
* \endenglish
40
*/
41
ExpressionPtr
getExpression
();
42
43
private
:
44
friend
class
DataSwitch
;
45
IfNode
();
46
void
*
d_
{
nullptr
};
47
};
48
49
}
// namespace aubo_scope
50
}
// namespace arcs
51
#endif
// AUBO_SCOPE_IF_NODE_H
ARCS_ABI_EXPORT
#define ARCS_ABI_EXPORT
定义
class_forward.h:16
ARCS_CLASS_FORWARD
#define ARCS_CLASS_FORWARD(C)
Macro that forward declares a class and defines the respective smartpointers through ARCS_DECLARE_PTR...
定义
class_forward.h:68
arcs::aubo_scope::Expression
\chinese 表达式 表达式可用于配置各种内置程序节点,例如 If 和 Wait 节点。表达式通常是条件表达式 (计算结果为 true 或 false)。
定义
expression.h:34
arcs::aubo_scope::IfNode
定义
if_node.h:12
arcs::aubo_scope::IfNode::IfNode
IfNode()
arcs::aubo_scope::IfNode::IfNode
IfNode(IfNode &f)
arcs::aubo_scope::IfNode::getExpression
ExpressionPtr getExpression()
\chinese
arcs::aubo_scope::IfNode::DataSwitch
friend class DataSwitch
定义
if_node.h:44
arcs::aubo_scope::IfNode::~IfNode
virtual ~IfNode()
arcs::aubo_scope::IfNode::IfNode
IfNode(IfNode &&f)
arcs::aubo_scope::IfNode::d_
void * d_
定义
if_node.h:46
arcs::aubo_scope::IfNode::setExpression
void setExpression(ExpressionPtr expression)
\chinese 设置节点使用的表达式。
arcs::aubo_scope::ProgramNode::ProgramNode
ProgramNode(ProgramNode &f)
arcs::aubo_scope
定义
contribution_provider.h:8
arcs
定义
contribution_provider.h:7
program_node.h
include
aubo_caps
domain
program
nodes
builtin
if_node.h
制作者
1.16.1