8 #include <tbb/concurrent_hash_map.h>
24 typedef tbb::concurrent_hash_map<std::string,unsigned int>
CHM;
The ISvcLocator is the interface implemented by the Service Factory in the Application Manager to loc...
virtual StatusCode initialize()
Its initialization.
virtual ~CPUCruncher()
virtual & protected desctrustor
void findPrimes(const unsigned long int)
The CPU intensive function.
double get_runtime() const
CPUCruncher & operator=(const CPUCruncher &)
the assignement operator is disabled
void calibrate()
Calibrate.
virtual StatusCode execute()
the execution of the algorithm
long unsigned int getNCaliIters(double)
const std::string & name() const override
The identifying name of the algorithm object.
virtual StatusCode finalize()
the finalization of the algorithm
static std::vector< unsigned int > m_niters_vect
static CHM m_name_ncopies_map
This class is used for returning status codes from appropriate routines.
The useful base class for data processing algorithms.
static std::vector< double > m_times_vect
std::vector< DataObjectHandle< DataObject > * > m_inputHandles
CPUCruncher()
the default constructor is disabled
std::vector< std::string > m_outKeys
unsigned int m_rwRepetitions
std::vector< std::string > m_inpKeys
std::vector< DataObjectHandle< DataObject > * > m_outputHandles
tbb::concurrent_hash_map< std::string, unsigned int > CHM