OSSIM - Open Source Software Image Map  Version 1.9.0 (20180803)
ossimMpi.h
Go to the documentation of this file.
1 //*******************************************************************
2 // Copyright (C) 2000 ImageLinks Inc.
3 //
4 // License: See top level LICENSE.txt file.
5 //
6 // Author: Garrett Potts
7 //
8 //*************************************************************************
9 // $Id: ossimMpi.h 13602 2008-09-25 14:23:32Z gpotts $
10 #ifndef ossimMpi_HEADER
11 #define ossimMpi_HEADER
12 
13 #include <ossim/ossimConfig.h>
15 
17 {
18 public:
19  static ossimMpi* instance();
20 
21  ossim_float64 getTime()const;
22 
26  void initialize(int* argc, char*** argv);
27 
32  void finalize();
33  int getRank()const;
34  int getNumberOfProcessors()const;
35  void setEnabledFlag(bool flag);
36  bool isEnabled()const;
37 
45  void barrier();
46 
47 protected:
48  ossimMpi(); // hide
49  ossimMpi(const ossimMpi&); // hide
50  void operator =(const ossimMpi&); // hide
51 
58 };
59 
60 #endif
OSSIM_DLL ossim_int64 getTime()
Gets the current time.
double ossim_float64
bool theEnabledFlag
Definition: ossimMpi.h:57
static ossimMpi * theInstance
Definition: ossimMpi.h:56
#define OSSIM_DLL