VTK  9.7.20261119
vtk::keys::Grouping< TKeys > Struct Template Reference

#include <vtkKeys.h>

Detailed Description

template<typename TKeys>
struct vtk::keys::Grouping< TKeys >

The result of Group(): the groups, and the keys of the groups, i.e., the groups of key id k are [Keys.GetOffset(k), Keys.GetOffset(k + 1)), which are also the keys of the first elements of the groups once compacted.

Keep only what is needed, e.g.:

auto groups = vtk::keys::Group(keys, output, functor).Groups; // the keys of the groups released
auto groupKeys = vtk::keys::Group(keys, output, functor).Keys; // the groups released
auto grouping = vtk::keys::Group(keys, output, functor); // both
Grouping< TKeys > Group(const TKeys &keys, Output &&output, Functor &&functor)
Group the equal elements of every key of the Output with a group functor called as functor(output,...

A structured binding, e.g., auto [groups, groupKeys], keeps both until the end of its scope.

Definition at line 477 of file vtkKeys.h.

Inheritance diagram for vtk::keys::Grouping< TKeys >:
[legend]

Public Attributes

GroupedElements< TKeys > Groups
ReducedKeys< TKeys > Keys

Member Data Documentation

◆ Groups

template<typename TKeys>
GroupedElements<TKeys> vtk::keys::Grouping< TKeys >::Groups

Definition at line 479 of file vtkKeys.h.

◆ Keys

template<typename TKeys>
ReducedKeys<TKeys> vtk::keys::Grouping< TKeys >::Keys

Definition at line 480 of file vtkKeys.h.


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