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 * Sets the expression used by the node.
20 *
21 * @param expression The expression that will be evaluated in this If Node.
22 * @return The same If Node.
23 * @throws IllegalStateException if called from a Swing-based AuboCap
24 * outside of an {@link UndoableChanges} scope (see also {@link
25 * UndoRedoManager}).
26 */
27 void setExpression(ExpressionPtr expression);
28
29 /**
30 * @return the Expression to be evaluated in this If node.
31 */
32 ExpressionPtr getExpression();
33
34 private:
35 friend class DataSwitch;
36 IfNode();
37 void *d_{ nullptr };
38 };
39
40 } // namespace aubo_scope
41 } // namespace arcs
42 #endif // AUBO_SCOPE_IF_NODE_H
ARCS_ABI_EXPORT
#define ARCS_ABI_EXPORT
Definition: class_forward.h:16
arcs::aubo_scope::Expression
Definition: expression.h:26
arcs::aubo_scope::IfNode
Definition: 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()
arcs::aubo_scope::IfNode::~IfNode
virtual ~IfNode()
arcs::aubo_scope::IfNode::IfNode
IfNode(IfNode &&f)
arcs::aubo_scope::IfNode::setExpression
void setExpression(ExpressionPtr expression)
Sets the expression used by the node.
arcs::aubo_scope::ProgramNode
Definition: program_node.h:19
arcs::aubo_scope::ARCS_CLASS_FORWARD
ARCS_CLASS_FORWARD(GripForceCapability)
arcs
Definition: contribution_provider.h:7
program_node.h