17 template <
typename Context,
typename Config,
typename WrapNode>
31 RootNode(
const Context &context, Config *config)
32 : WrapNode(context, config, NULL) {}
47 WrapNode::backprop_strat_->on_backpropagate(value);
53 using WrapNode::select_child;
RootNode(const Context &context, Config *config)
constructs a new object and passes all parameters to the wrapped node.
special node that is the root of each tree. Its merely a wrapper that wrapps around a inner node.
basic interface for a node in the tree. Every node has to implement this functions.
virtual node_t * parent() const
disabled in root node, to end backpropagating actions.
virtual void backpropagate(const double &value)
consume value and do noting more.