Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
VTK
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Alex W.
VTK
Commits
6122e912
Commit
6122e912
authored
3 years ago
by
Timothée Couble
Browse files
Options
Downloads
Patches
Plain Diff
Group documentation for vtkSMPTools::For
parent
22b50614
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Common/Core/vtkSMPTools.h
+2
-20
2 additions, 20 deletions
Common/Core/vtkSMPTools.h
with
2 additions
and
20 deletions
Common/Core/vtkSMPTools.h
+
2
−
20
View file @
6122e912
...
...
@@ -245,18 +245,7 @@ public:
typename
vtk
::
detail
::
smp
::
vtkSMPTools_Lookup_For
<
Functor
>::
type
fi
(
f
);
fi
.
For
(
first
,
last
,
grain
);
}
///@}
///@{
/**
* Execute a for operation in parallel. First and last
* define the range over which to operate (which is defined
* by the operator). The operation executed is defined by
* operator() of the functor object. The grain gives the parallel
* engine a hint about the coarseness over which to parallelize
* the function (as defined by last-first of each execution of
* operator() ).
*/
template
<
typename
Functor
>
static
void
For
(
vtkIdType
first
,
vtkIdType
last
,
vtkIdType
grain
,
Functor
const
&
f
)
{
...
...
@@ -265,6 +254,7 @@ public:
}
///@}
///@{
/**
* Execute a for operation in parallel. First and last
* define the range over which to operate (which is defined
...
...
@@ -280,20 +270,12 @@ public:
vtkSMPTools
::
For
(
first
,
last
,
0
,
f
);
}
/**
* Execute a for operation in parallel. First and last
* define the range over which to operate (which is defined
* by the operator). The operation executed is defined by
* operator() of the functor object. The grain gives the parallel
* engine a hint about the coarseness over which to parallelize
* the function (as defined by last-first of each execution of
* operator() ). Uses a default value for the grain.
*/
template
<
typename
Functor
>
static
void
For
(
vtkIdType
first
,
vtkIdType
last
,
Functor
const
&
f
)
{
vtkSMPTools
::
For
(
first
,
last
,
0
,
f
);
}
///@}
///@{
/**
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment