15#ifdef ROOFIT_WITH_RYML
28 ChildItImpl(Nd &
n,
size_t p) : node(
n), pos(
p) {}
29 ChildItImpl(
const ChildItImpl &other) : node(other.node), pos(other.pos) {}
30 std::unique_ptr<typename child_iterator::Impl> clone()
const override
32 return std::make_unique<ChildItImpl>(node, pos);
34 void forward()
override { ++pos; }
36 Nd ¤t()
override {
return node.child(pos); }
37 bool equal(
const typename child_iterator::Impl &other)
const override
39 auto it =
dynamic_cast<const ChildItImpl<Nd> *
>(&other);
40 return it && &(it->node) == &(this->node) && (it->pos) == this->pos;
52template class JSONNode::child_iterator_t<JSONNode>;
53template class JSONNode::child_iterator_t<const JSONNode>;
57 return {
child_iterator(std::make_unique<::ChildItImpl<JSONNode>>(*
this, 0)),
73int JSONNode::val_t<int>()
const
78float JSONNode::val_t<float>()
const
83double JSONNode::val_t<double>()
const
88bool JSONNode::val_t<bool>()
const
93std::string JSONNode::val_t<std::string>()
const
100 return std::make_unique<Tree_t>();
105 return std::make_unique<Tree_t>(is);
winID h TVirtualViewer3D TVirtualGLPainter p
virtual bool val_bool() const
child_iterator_t< JSONNode > child_iterator
virtual children_view children()
virtual size_t num_children() const =0
virtual float val_float() const
virtual int val_int() const
child_iterator_t< const JSONNode > const_child_iterator
static std::unique_ptr< JSONTree > create()
std::ostream & operator<<(std::ostream &os, RooFit::Detail::JSONNode const &s)
The namespace RooFit contains mostly switches that change the behaviour of functions of PDFs (or othe...
static constexpr double s
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)