VTK
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
dox
debian
build
Common
Core
vtkSMPToolsInternal.h
Go to the documentation of this file.
1
/*=========================================================================
2
3
Program: Visualization Toolkit
4
Module: vtkSMPToolsInternal.h.in
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
namespace
vtk
16
{
17
namespace
detail
18
{
19
namespace
smp
20
{
21
template
<
typename
FunctorInternal>
22
static
void
vtkSMPTools_Impl_For
(
23
vtkIdType
first
,
vtkIdType
last,
vtkIdType
grain,
24
FunctorInternal& fi)
25
{
26
vtkIdType
n
= last -
first
;
27
if
(!n)
28
{
29
return
;
30
}
31
32
if
(grain == 0 || grain >= n)
33
{
34
fi.Execute(first, last);
35
}
36
else
37
{
38
vtkIdType
b
=
first
;
39
while
(b < last)
40
{
41
vtkIdType
e = b + grain;
42
if
(e > last)
43
{
44
e = last;
45
}
46
fi.Execute(b, e);
47
b = e;
48
}
49
}
50
}
51
}
52
}
53
}
vtkgl::first
const GLint * first
Definition:
vtkgl.h:11686
vtkgl::b
GLboolean GLboolean GLboolean b
Definition:
vtkgl.h:12312
vtk
Definition:
vtkSMPTools.h:42
vtkIdType
int vtkIdType
Definition:
vtkType.h:268
detail
Definition:
vtkAtomicInt.h:74
vtk::detail::smp::vtkSMPTools_Impl_For
static void vtkSMPTools_Impl_For(vtkIdType first, vtkIdType last, vtkIdType grain, FunctorInternal &fi)
Definition:
vtkSMPToolsInternal.h:22
vtkgl::n
GLclampd n
Definition:
vtkgl.h:14370
Generated on Thu Mar 12 2015 20:31:32 for VTK by
1.8.8