ITK  6.0.0
Insight Toolkit
itkTBBMultiThreader.h
Go to the documentation of this file.
1/*=========================================================================
2 *
3 * Copyright NumFOCUS
4 *
5 * Licensed under the Apache License, Version 2.0 (the "License");
6 * you may not use this file except in compliance with the License.
7 * You may obtain a copy of the License at
8 *
9 * https://www.apache.org/licenses/LICENSE-2.0.txt
10 *
11 * Unless required by applicable law or agreed to in writing, software
12 * distributed under the License is distributed on an "AS IS" BASIS,
13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 * See the License for the specific language governing permissions and
15 * limitations under the License.
16 *
17 *=========================================================================*/
18
19#ifndef itkTBBMultiThreader_h
20#define itkTBBMultiThreader_h
21
23
24namespace itk
25{
38class ITKCommon_EXPORT TBBMultiThreader : public MultiThreaderBase
39{
40public:
41 ITK_DISALLOW_COPY_AND_MOVE(TBBMultiThreader);
42
48
50 itkNewMacro(Self);
51
53 itkOverrideGetNameOfClassMacro(TBBMultiThreader);
54
58 void
59 SetNumberOfWorkUnits(ThreadIdType numberOfWorkUnits) override;
60
65 void
67
72 void
73 SetSingleMethod(ThreadFunctionType, void * data) override;
74
77 void
79 SizeValueType lastIndexPlus1,
81 ProcessObject * filter) override;
82
84 void
85 ParallelizeImageRegion(unsigned int dimension,
86 const IndexValueType index[],
87 const SizeValueType size[],
89 ProcessObject * filter) override;
90
91protected:
94 void
95 PrintSelf(std::ostream & os, Indent indent) const override;
96
97private:
99 friend class ProcessObject;
100};
101
102} // end namespace itk
103#endif
Control indentation during Print() invocation.
Definition: itkIndent.h:50
Light weight base class for most itk classes.
A class for performing multithreaded execution.
std::function< void(SizeValueType)> ArrayThreadingFunctorType
std::function< void(const IndexValueType index[], const SizeValueType size[])> ThreadingFunctorType
Base class for most ITK classes.
Definition: itkObject.h:62
The base class for all process objects (source, filters, mappers) in the Insight data processing pipe...
A class for performing multithreaded execution with a thread pool back end, uses the Intel Threading ...
void ParallelizeArray(SizeValueType firstIndex, SizeValueType lastIndexPlus1, ArrayThreadingFunctorType aFunc, ProcessObject *filter) override
void PrintSelf(std::ostream &os, Indent indent) const override
void SetNumberOfWorkUnits(ThreadIdType numberOfWorkUnits) override
void SetSingleMethod(ThreadFunctionType, void *data) override
~TBBMultiThreader() override
void ParallelizeImageRegion(unsigned int dimension, const IndexValueType index[], const SizeValueType size[], ThreadingFunctorType funcP, ProcessObject *filter) override
void SingleMethodExecute() override
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....
unsigned int ThreadIdType
Definition: itkIntTypes.h:102
long IndexValueType
Definition: itkIntTypes.h:93
void(*)(void *) ThreadFunctionType
unsigned long SizeValueType
Definition: itkIntTypes.h:86