Warning, /include/Geant4/tools/histo/hmpi is written in an unsupported language. File is not indexed.
0001 // Copyright (C) 2010, Guy Barrand. All rights reserved.
0002 // See the file tools.license for terms.
0003
0004 #ifndef tools_histo_hmpi
0005 #define tools_histo_hmpi
0006
0007 namespace tools {
0008 namespace histo {
0009 class h1d;
0010 class h2d;
0011 class h3d;
0012 class p1d;
0013 class p2d;
0014 }}
0015
0016 #include <string>
0017 #include <vector>
0018
0019 namespace tools {
0020 namespace histo {
0021
0022 class hmpi {
0023 public:
0024 virtual ~hmpi(){}
0025 public:
0026 virtual bool pack(const h1d&) = 0;
0027 virtual bool pack(const h2d&) = 0;
0028 virtual bool pack(const h3d&) = 0;
0029 virtual bool pack(const p1d&) = 0;
0030 virtual bool pack(const p2d&) = 0;
0031
0032 virtual bool beg_send(unsigned int /*a_nhist*/) = 0;
0033 virtual bool send(int /*a_dest*/) = 0;
0034
0035 virtual bool wait_histos(int /*a_src*/,std::vector< std::pair<std::string,void*> >& /*a_hists*/) = 0;
0036
0037 virtual int rank() const = 0;
0038 virtual bool comm_rank(int&) const = 0;
0039 virtual bool comm_size(int&) const = 0;
0040 };
0041
0042 }}
0043
0044 #endif