The SKIRT project
advanced radiative transfer for astrophysics
Public Member Functions | Private Member Functions | Friends | List of all members
NullParallel Class Reference

#include <NullParallel.hpp>

Inheritance diagram for NullParallel:
Inheritance graph
[legend]

Public Member Functions

void call (size_t maxIndex, std::function< void(size_t firstIndex, size_t numIndices)> target) override
 
- Public Member Functions inherited from Parallel
virtual ~Parallel ()
 
virtual void call (size_t maxIndex, std::function< void(size_t firstIndex, size_t numIndices)> target)=0
 

Private Member Functions

 NullParallel (int threadCount)
 

Friends

class ParallelFactory
 

Additional Inherited Members

- Protected Member Functions inherited from Parallel
 Parallel ()
 

Detailed Description

This class implements the Parallel base class interface as a "no operation". In other words, it ignores any requests for performing tasks. This no-operation capability can be used, for example, to skip a certain body of work on all processeses except for the root process.

Constructor & Destructor Documentation

◆ NullParallel()

NullParallel::NullParallel ( int  threadCount)
explicitprivate

Constructs a NullParallel instance. The specified number of execution threads is ignored. The constructor is private; use the ParallelFactory::parallel() function instead.

Member Function Documentation

◆ call()

void NullParallel::call ( size_t  maxIndex,
std::function< void(size_t firstIndex, size_t numIndices)>  target 
)
overridevirtual

This function implements the call() interface described in the Parallel base class for the parallelization scheme offered by this subclass.

Implements Parallel.


The documentation for this class was generated from the following file: