lppl  v2.0.0

◆ operator()()

template<typename D , typename RNG , typename... Ts>
template<typename... Args>
graph_node<D> graph_sample_node_construct< D, RNG, Ts >::operator() ( Args &&...  args)
inline

Constructs a sampled graph node based on passed parent nodes or values.

The arity of this operator should have the same arity as one of the constructors of D or compilation will fail. The passed arguments can either be of the base type required by the constructor of D or can be of type graph_node_t<T> where T is one of the base types required by the constructor of D. The arguments are evaluated from left to right.

Template Parameters
ArgsTypes of arguments to pass to the constructor of D
Parameters
argsarguments to pass to the constructor of D
Returns
graph_node<D>