1 classdef NullCreator < DataTree.CreatorDefault
2 % Simple
DataTree.ICreator copying the original tree and applying a custom
function to
3 % its leafs returning nothing.
5 % This creator is used by the INode.leaf_func() method.
9 % function_handle to a custom function applied to all
leaf elements
11 % The function synopsis is: 'funcptr(arg_node)'
17 function sc = NullCreator(funcptr)
19 % constructor of this creator
22 % funcptr: function handle to a custom function applied to all
leaf elements
26 function create_leaf_node(this, arg_node, basepath, mu_cube, tslice)
27 % function create_leaf_node(this, arg_node, basepath, mu_cube, tslice)
28 % @copybrief DataTree::
ICreatorcreate_leaf_node()
30 % @copydetails DataTree::
ICreatorcreate_leaf_node()
31 this.funcptr(arg_node);