d_inlineNv.d_nchildren = 0;
}
+template <class Builder>
+Node NodeBuilderBase<Builder>::constructNode() {
+ return Node(constructNV());
+}
+
+template <class Builder>
+Node NodeBuilderBase<Builder>::constructNode() const {
+ return Node(constructNV());
+}
+
template <class Builder>
Node* NodeBuilderBase<Builder>::constructNodePtr() {
return new Node(constructNV());
return new Node(constructNV());
}
+template <class Builder>
+NodeBuilderBase<Builder>::operator Node() {
+ return constructNode();
+}
+
+template <class Builder>
+NodeBuilderBase<Builder>::operator Node() const {
+ return constructNode();
+}
+
template <class Builder>
expr::NodeValue* NodeBuilderBase<Builder>::constructNV() {
Assert(!isUsed(), "NodeBuilder is one-shot only; "
}
}
-template <class Builder>
-NodeBuilderBase<Builder>::operator Node() {
- return Node(constructNV());
-}
-
-template <class Builder>
-NodeBuilderBase<Builder>::operator Node() const {
- return Node(constructNV());
-}
-
template <unsigned nchild_thresh>
template <unsigned N>
void NodeBuilder<nchild_thresh>::internalCopy(const NodeBuilder<N>& nb) {