omni::graph::exec::unstable::createNodeFactory

Defined in omni/graph/exec/unstable/INodeFactory.h

template<typename Fn>
NodeFactoryPtr omni::graph::exec::unstable::createNodeFactory(Fn &&fn)

Generates an INodeFactory from an invocable object such as a function pointer, functor, etc.

The given function should have the signature INode*(const char*, IDef*).

It is the responsibility of the factory to hold a reference to the created node. This reference is generally released when the graph is updated.

The returned omni::graph::exec::unstable::INode will not have omni::core::IObject::acquire() called on it.