MCPcopy Create free account
hub / github.com/BehaviorTree/BehaviorTree.CPP / setChild

Method setChild

src/decorator_node.cpp:22–30  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

20{}
21
22void DecoratorNode::setChild(TreeNode* child)
23{
24 if(child_node_ != nullptr)
25 {
26 throw BehaviorTreeException("Decorator [", name(), "] has already a child assigned");
27 }
28
29 child_node_ = child;
30}
31
32void DecoratorNode::halt()
33{

Callers 7

createNodeFromXMLMethod · 0.80
DeadlineTestMethod · 0.80
RepeatTestMethod · 0.80
RepeatTestAsyncMethod · 0.80
RetryTestMethod · 0.80
TimeoutAndRetryMethod · 0.80
TESTFunction · 0.80

Calls 1

Tested by 6

DeadlineTestMethod · 0.64
RepeatTestMethod · 0.64
RepeatTestAsyncMethod · 0.64
RetryTestMethod · 0.64
TimeoutAndRetryMethod · 0.64
TESTFunction · 0.64