ESyS-Particle  4.0.1
BMesh2DInteractionCpData.h
00001 
00002 //                                                         //
00003 // Copyright (c) 2003-2011 by The University of Queensland //
00004 // Earth Systems Science Computational Centre (ESSCC)      //
00005 // http://www.uq.edu.au/esscc                              //
00006 //                                                         //
00007 // Primary Business: Brisbane, Queensland, Australia       //
00008 // Licensed under the Open Software License version 3.0    //
00009 // http://www.opensource.org/licenses/osl-3.0.php          //
00010 //                                                         //
00012 
00013 #ifndef __BMESH2DINTERACTIONCPDATA_H
00014 #define __BMESH2DINTERACTIONCPDATA_H
00015 
00016 // --- STL includes ---
00017 #include <iostream>
00018 using std::istream;
00019 using std::ostream;
00020 
00021 #include "Parallel/CheckPointable.h"
00022 
00023 class BEdge2DInteraction;
00024 
00032 class BMesh2DInteractionCpData : public esys::lsm::CheckPointable
00033 {
00034  private:
00035   int m_pid;
00036   int m_tid;
00037 
00038  public:
00039   BMesh2DInteractionCpData();
00040   virtual ~BMesh2DInteractionCpData()
00041   {
00042   }
00043   
00044   BMesh2DInteractionCpData(const BEdge2DInteraction&);
00045   BMesh2DInteractionCpData(int,int);
00046 
00047   void set(const BEdge2DInteraction&);
00048   void set(int,int);
00049   int getPID();
00050   int getTID();
00051  
00052   virtual void saveCheckPointData(ostream&);
00053   virtual void loadCheckPointData(istream&);
00054 };
00055 
00056 
00057 #endif // __BMESH2DINTERACTIONCPDATA_H