OSSIM - Open Source Software Image Map
Version 1.9.0 (20180803)
|
#include <ossimMpi.h>
Public Member Functions | |
ossim_float64 | getTime () const |
void | initialize (int *argc, char ***argv) |
void | finalize () |
int | getRank () const |
int | getNumberOfProcessors () const |
void | setEnabledFlag (bool flag) |
bool | isEnabled () const |
void | barrier () |
MPI Barrier method. More... | |
Static Public Member Functions | |
static ossimMpi * | instance () |
Protected Member Functions | |
ossimMpi () | |
ossimMpi (const ossimMpi &) | |
void | operator= (const ossimMpi &) |
Protected Attributes | |
bool | theEnabledFlag |
Static Protected Attributes | |
static ossimMpi * | theInstance =0 |
Definition at line 16 of file ossimMpi.h.
|
protected |
Definition at line 168 of file ossimMpi.cpp.
Referenced by instance().
|
protected |
Definition at line 183 of file ossimMpi.cpp.
void ossimMpi::barrier | ( | ) |
MPI Barrier method.
Blocks until all processes have reached this routine.
If MPI is enabled this will call: MPI_Barrier( MPI_COMM_WORLD ); else it will simply return.
Definition at line 42 of file ossimMpi.cpp.
References theEnabledFlag.
void ossimMpi::finalize | ( | ) |
Called only once when we would like to shutdown mpi
Definition at line 115 of file ossimMpi.cpp.
References theEnabledFlag.
int ossimMpi::getNumberOfProcessors | ( | ) | const |
int ossimMpi::getRank | ( | ) | const |
Definition at line 140 of file ossimMpi.cpp.
References theEnabledFlag.
Referenced by ossimIgen::slaveSetup().
ossim_float64 ossimMpi::getTime | ( | ) | const |
void ossimMpi::initialize | ( | int * | argc, |
char *** | argv | ||
) |
Typically called only one time
Definition at line 99 of file ossimMpi.cpp.
|
static |
Definition at line 27 of file ossimMpi.cpp.
References ossimMpi(), and theInstance.
Referenced by ossimIgen::initialize(), ossimIgen::initializeAttributes(), ossimIgen::outputProduct(), ossimIgen::slaveSetup(), and ossimIgen::writeToFile().
bool ossimMpi::isEnabled | ( | ) | const |
|
protected |
void ossimMpi::setEnabledFlag | ( | bool | flag | ) |
|
protected |
Definition at line 57 of file ossimMpi.h.
Referenced by barrier(), finalize(), getNumberOfProcessors(), getRank(), getTime(), isEnabled(), operator=(), and setEnabledFlag().
|
staticprotected |
We will have only a single instance of this class.
Definition at line 56 of file ossimMpi.h.
Referenced by instance().