VTK
9.4.20241203
|
Invoke a functor on the named type and each of its parent types. More...
Invoke a functor on the named type and each of its parent types.
The VTKObjectType template-parameter should be a subclass of vtkObjectBase that uses the vtkTypeMacro()
to define a Superclass
type-alias, as this is how the inheritance hierarchy is traversed.
Call the static enumerate()
method of ParentClasses with a functor that accepts no arguments and a single template parameter. If the return value of your functor is void, then enumerate()
will invoke your functor once on every type in your object's hierarchy. If the return value of your functor is a boolean, then enumerate()
will invoke your functor on every type in your object's hierarchy until the functor returns false (indicating early termination is requested). See detail::AddNames() above for an example of the latter.
Definition at line 116 of file vtkInherits.h.