VTK  9.2.6
vtkArrayDispatch.h
Go to the documentation of this file.
1/*=========================================================================
2
3 Program: Visualization Toolkit
4 Module: vtkArrayDispatch.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 notice for more information.
13
14=========================================================================*/
207#ifndef vtkArrayDispatch_h
208#define vtkArrayDispatch_h
209
210#include "vtkArrayDispatchArrayList.h"
211#include "vtkType.h"
212#include "vtkTypeList.h"
213
215{
216
220typedef vtkTypeList::Create<double, float> Reals;
221
225typedef vtkTypeList::Unique<
226 vtkTypeList::Create<char, int, long, long long, short, signed char, unsigned char, unsigned int,
227 unsigned long, unsigned long long, unsigned short, vtkIdType>>::Result Integrals;
228
233
234//------------------------------------------------------------------------------
241struct Dispatch;
242
243//------------------------------------------------------------------------------
250template <typename ArrayList>
252
253//------------------------------------------------------------------------------
261template <typename ValueTypeList>
263
264//------------------------------------------------------------------------------
272struct Dispatch2;
273
274//------------------------------------------------------------------------------
283struct Dispatch2SameValueType;
284
285//------------------------------------------------------------------------------
295template <typename ArrayList1, typename ArrayList2>
297
298//------------------------------------------------------------------------------
310template <typename ValueTypeList1, typename ValueTypeList2>
312
313//------------------------------------------------------------------------------
324template <typename ArrayList1, typename ArrayList2>
326
327//------------------------------------------------------------------------------
339template <typename ValueTypeList>
341
342//------------------------------------------------------------------------------
350struct Dispatch3;
351
352//------------------------------------------------------------------------------
361struct Dispatch3SameValueType;
362
363//------------------------------------------------------------------------------
374template <typename ArrayList1, typename ArrayList2, typename ArrayList3>
376
377//------------------------------------------------------------------------------
390template <typename ValueTypeList1, typename ValueTypeList2, typename ValueTypeList3>
392
393//------------------------------------------------------------------------------
404template <typename ArrayList1, typename ArrayList2, typename ArrayList3>
406
407//------------------------------------------------------------------------------
419template <typename ValueTypeList>
421
422//------------------------------------------------------------------------------
427template <typename ArrayList, typename ValueList>
429
430} // end namespace vtkArrayDispatch
431
432#include "vtkArrayDispatch.txx"
433
434#endif // vtkArrayDispatch_h
435// VTK-HeaderTest-Exclude: vtkArrayDispatch.h
vtkTypeList::Append< Reals, Integrals >::Result AllTypes
A Typelist containing all standard VTK array ValueTypes.
vtkTypeList::Create< double, float > Reals
A TypeList containing all real ValueTypes.
vtkTypeList::Unique< vtkTypeList::Create< char, int, long, longlong, short, signedchar, unsignedchar, unsignedint, unsignedlong, unsignedlonglong, unsignedshort, vtkIdType > >::Result Integrals
A Typelist containing all integral ValueTypes.
Dispatch two arrays, restricting the valid code paths to use only array types specified in the ArrayL...
Dispatch two arrays with the restriction that the type of the first array is in the ArrayList1 TypeLi...
Dispatch two arrays, restricting the valid code paths to use only array types found in application-wi...
Dispatch two arrays, restricting the valid code paths to use ValueType-filtered versions of the appli...
Dispatch three arrays, restricting the valid code paths to use only array types specified in the Arra...
Dispatch three arrays with the restriction that the type of the first array is in the ArrayList1 Type...
Dispatch three arrays, restricting the valid code paths to use only array types found in application-...
Dispatch three arrays, restricting the valid code paths to use ValueType-filtered versions of the app...
Dispatch a single array against all array types mentioned in the ArrayList template parameter.
Dispatch a single array against all array types in the application-wide vtkArrayDispatch::Arrays list...
Filter the ArrayList to contain only arrays with ArrayType::ValueType that exist in ValueList.
Appends type T to TypeList TList and stores the result in Result.
Remove all duplicate types from TypeList TList, storing the new list in Result.
int vtkIdType
Definition vtkType.h:332