20 ChildItImpl(Nd &
n,
size_t p) : node(
n), pos(p) {}
21 ChildItImpl(
const ChildItImpl &other) : node(other.node), pos(other.pos) {}
22 virtual std::unique_ptr<typename child_iterator::Impl> clone()
const override
24 return std::make_unique<ChildItImpl>(node, pos);
26 virtual void forward()
override { ++pos; }
27 virtual void backward()
override { --pos; }
28 virtual Nd ¤t()
override {
return node.child(pos); }
29 virtual bool equal(
const typename child_iterator::Impl &other)
const override
31 auto it =
dynamic_cast<const ChildItImpl<Nd> *
>(&other);
32 return it && &(it->node) == &(this->node) && (it->pos) == this->pos;
42namespace Experimental {
44template class JSONNode::child_iterator_t<JSONNode>;
45template class JSONNode::child_iterator_t<const JSONNode>;
49 return {
child_iterator(std::make_unique<::ChildItImpl<JSONNode>>(*
this, 0)),
65int JSONNode::val_t<int>()
const
70float JSONNode::val_t<float>()
const
75double JSONNode::val_t<double>()
const
80bool JSONNode::val_t<bool>()
const
85std::string JSONNode::val_t<std::string>()
const
TBuffer & operator<<(TBuffer &buf, const Tmpl *obj)
child_iterator_t< const JSONNode > const_child_iterator
child_iterator_t< JSONNode > child_iterator
virtual size_t num_children() const =0
virtual float val_float() const
virtual bool val_bool() const
virtual void writeJSON(std::ostream &os) const =0
virtual int val_int() const
virtual children_view children()
The namespace RooFit contains mostly switches that change the behaviour of functions of PDFs (or othe...
void forward(const LAYERDATA &prevLayerData, LAYERDATA &currLayerData)
apply the weights (and functions) in forward direction of the DNN
void backward(LAYERDATA &prevLayerData, LAYERDATA &currLayerData)
backward application of the weights (back-propagation of the error)