VTK  9.1.0
vtkHyperTreeGridTools.h
Go to the documentation of this file.
1/*=========================================================================
2
3 Program: Visualization Toolkit
4 Module: vtkHyperTreeGridTools.h
5
6 Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7 All rights reserved.
8 See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9
10 This software is distributed WITHOUT ANY WARRANTY; without even
11 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12 PURPOSE. See the above copyright Nonice for more information.
13
14=========================================================================*/
15
16#ifndef vtkHyperTreeGridTools_h
17#define vtkHyperTreeGridTools_h
18
19namespace vtk
20{
21namespace hypertreegrid
22{
23
24template <class T>
25bool HasTree(const T& e)
26{
27 return e.GetTree() != nullptr;
28}
29
30} // namespace hypertreegrid
31} // namespace vtk
32
33#endif // vtHyperTreeGridTools_h
34// VTK-HeaderTest-Exclude: vtkHyperTreeGridTools.h
bool HasTree(const T &e)
Specialization of tuple ranges and iterators for vtkAOSDataArrayTemplate.