VTK
9.0.1
Common
Core
vtkAtomicTypeConcepts.h
Go to the documentation of this file.
1
/*=========================================================================
2
3
Program: Visualization Toolkit
4
Module: vtkAtomicTypeConcepts.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
=========================================================================*/
15
16
#ifndef vtkAtomicTypeConcepts_h
17
#define vtkAtomicTypeConcepts_h
18
19
#include <limits>
20
21
namespace
vtk
22
{
23
namespace
atomic
24
{
25
namespace
detail
26
{
27
28
template
<
bool
>
29
struct
CompileTimeCheck
;
30
template
<>
31
struct
CompileTimeCheck
<true>
32
{
33
};
34
35
template
<
typename
T>
36
struct
IntegralType
37
{
38
CompileTimeCheck<std::numeric_limits<T>::is_specialized
&& std::numeric_limits<T>::is_integer &&
39
(
sizeof
(T) == 4 ||
sizeof
(T) == 8)>
40
c
;
41
};
42
43
}
// detail
44
}
// atomic
45
}
// vtk
46
47
#endif
48
// VTK-HeaderTest-Exclude: vtkAtomicTypeConcepts.h
vtk::atomic::detail::IntegralType::c
CompileTimeCheck< std::numeric_limits< T >::is_specialized &&std::numeric_limits< T >::is_integer &&(sizeof(T)==4||sizeof(T)==8)> c
Definition:
vtkAtomicTypeConcepts.h:40
detail
Definition:
vtkGenericDataArrayLookupHelper.h:31
vtk::atomic::detail::CompileTimeCheck
Definition:
vtkAtomicTypeConcepts.h:29
vtk::atomic::detail::IntegralType
Definition:
vtkAtomicTypeConcepts.h:36
vtk
Specialization of tuple ranges and iterators for vtkAOSDataArrayTemplate.
Definition:
vtkAtomicTypeConcepts.h:21
Generated on Thu Jun 25 2020 08:30:13 for VTK by
1.8.17