VTK  9.0.2
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 
19 namespace vtk
20 {
21 namespace hypertreegrid
22 {
23 
24 template <class T>
25 bool 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.