|
C++ Concurrency Sandbox
|
A Functor (Function Object) that calculates primality. More...
Public Member Functions | |
| void | operator() () const |
| Overloaded operator() to perform the calculation. | |
Public Attributes | |
| int | n |
| The number to check for primality. | |
| ResultQueue< std::pair< bool, int > > * | outputQueue |
| Pointer to the shared inbox. | |
A Functor (Function Object) that calculates primality.
Definition at line 140 of file MessagePassing.cpp.
|
inline |
Overloaded operator() to perform the calculation.
Definition at line 148 of file MessagePassing.cpp.
References n, outputQueue, and ResultQueue< T >::push().
| int IsPrimeCalculator::n |
The number to check for primality.
Definition at line 141 of file MessagePassing.cpp.
Referenced by main(), and operator()().
| ResultQueue<std::pair<bool, int> >* IsPrimeCalculator::outputQueue |
Pointer to the shared inbox.
Definition at line 142 of file MessagePassing.cpp.
Referenced by main(), and operator()().