VTK  9.3.20240424
vtk::ParentClasses< VTKObjectType, IsDerived > Struct Template Reference

Invoke a functor on the named type and each of its parent types. More...

Detailed Description

template<typename VTKObjectType, bool IsDerived = HasSuperclass<VTKObjectType>::value>
struct vtk::ParentClasses< VTKObjectType, IsDerived >

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.


The documentation for this struct was generated from the following file: