|
VTK
9.7.20261118
|
#include <vtkKeys.h>
The sparse keys of the elements, returned by ScatterSparse(): the distinct keys, in increasing order of their operator<, whose key id is their position.
The keys can be of any type ordered by operator<, e.g., a std::pair of point ids for edges. The distinct keys are shared with the reductions of these keys.
Public Types | |
| using | KeyType = TKey |
| using | KeyIdType = TElementId |
| Public Types inherited from vtk::keys::KeysBase< vtkIdType, vtkIdType, vtkIdType > | |
| using | KeyType |
| using | ElementIdType |
| using | KeyIdType |
Public Member Functions | |
| KeyType | GetKey (KeyIdType keyId) const |
| The key of a key id, and the key id of a key, -1 if absent, by a binary search. | |
| KeyIdType | FindKeyId (KeyType key) const |
| void | Reset () |
| Release the memory, the distinct keys once no reduction shares them. | |
| Public Member Functions inherited from vtk::keys::KeysBase< vtkIdType, vtkIdType, vtkIdType > | |
| vtkIdType | GetNumberOfRecords () const |
| vtkIdType | GetNumberOfElements () const |
| KeyIdType | GetNumberOfKeys () const |
| ElementIdType | GetOffset (KeyIdType keyId) const |
| The first element of a key id, 0 <= keyId <= GetNumberOfKeys(). | |
| const ElementIdType * | GetOffsets () const |
| The first element of every key id, GetNumberOfKeys() + 1 values, nullptr without element. | |
| ElementIdType | GetNumberOfElementsOfKey (KeyIdType keyId) const |
Friends | |
| struct | detail::SparseScatterer |
| struct | detail::Reducer |
| struct | detail::Grouper |
Additional Inherited Members | |
| Protected Member Functions inherited from vtk::keys::KeysBase< vtkIdType, vtkIdType, vtkIdType > | |
| void | ResetBase () |
| void | CopyBaseFrom (const KeysBase &other) |
| Protected Attributes inherited from vtk::keys::KeysBase< vtkIdType, vtkIdType, vtkIdType > | |
| vtkIdType | NumberOfRecords |
| vtkIdType | NumberOfElements |
| KeyIdType | NumberOfKeys |
| std::unique_ptr< ElementIdType[]> | Offsets |
| using vtk::keys::SparseKeys< TKey, TElementId >::KeyType = TKey |
| using vtk::keys::SparseKeys< TKey, TElementId >::KeyIdType = TElementId |
|
inline |
| KeyIdType vtk::keys::SparseKeys< TKey, TElementId >::FindKeyId | ( | KeyType | key | ) | const |
|
inline |
|
friend |
|
friend |
|
friend |