ITK 6.0.0
Insight Toolkit
 
Loading...
Searching...
No Matches
itkSingleMultiThreader.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#ifndef itkSingleMultiThreader_h
19#define itkSingleMultiThreader_h
20
22
23namespace itk
24{
38
39class ITKCommon_EXPORT SingleMultiThreader : public MultiThreaderBase
40{
41public:
42 ITK_DISALLOW_COPY_AND_MOVE(SingleMultiThreader);
43
49
51 itkNewMacro(Self);
52
54 itkOverrideGetNameOfClassMacro(SingleMultiThreader);
55
58 void
60
63 void
64 SetSingleMethod(ThreadFunctionType, void * data) override;
65
68 void
70 SizeValueType lastIndexPlus1,
72 ProcessObject * filter) override;
73
76 void
77 ParallelizeImageRegion(unsigned int dimension,
78 const IndexValueType index[],
79 const SizeValueType size[],
81 ProcessObject * filter) override;
82
84 void
85 SetMaximumNumberOfThreads(ThreadIdType numberOfThreads) override;
86
88 void
89 SetNumberOfWorkUnits(ThreadIdType numberOfWorkUnits) override;
90
91protected:
94 void
95 PrintSelf(std::ostream & os, Indent indent) const override;
96
100 friend class ProcessObject;
101};
102} // end namespace itk
103#endif // itkSingleMultiThreader_h
Control indentation during Print() invocation.
Definition itkIndent.h:50
std::function< void(SizeValueType)> ArrayThreadingFunctorType
std::function< void(const IndexValueType index[], const SizeValueType size[])> ThreadingFunctorType
void SetNumberOfWorkUnits(ThreadIdType numberOfWorkUnits) override
SmartPointer< const Self > ConstPointer
void ParallelizeArray(SizeValueType firstIndex, SizeValueType lastIndexPlus1, ArrayThreadingFunctorType aFunc, ProcessObject *filter) override
void SingleMethodExecute() override
void ParallelizeImageRegion(unsigned int dimension, const IndexValueType index[], const SizeValueType size[], ThreadingFunctorType funcP, ProcessObject *filter) override
void SetSingleMethod(ThreadFunctionType, void *data) override
void PrintSelf(std::ostream &os, Indent indent) const override
void SetMaximumNumberOfThreads(ThreadIdType numberOfThreads) override
~SingleMultiThreader() override
Implements transparent reference counting.
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....
unsigned int ThreadIdType
unsigned long SizeValueType
Definition itkIntTypes.h:86
void(*)(void *) ThreadFunctionType
long IndexValueType
Definition itkIntTypes.h:93