ESyS-Particle
4.0.1
|
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 __INTERACTIONFIELDSLAVE_H 00014 #define __INTERACTIONFIELDSLAVE_H 00015 00016 // -- project includes -- 00017 #include "FieldSlave.h" 00018 00019 template <typename I> class TParallelInteractionStorage; 00020 class TML_Comm; 00021 00030 template <typename T> 00031 class InteractionFieldSlave : public AFieldSlave 00032 { 00033 private: 00034 00035 protected: 00036 TParallelInteractionStorage<T>* m_pis; 00037 virtual void SendDataFull()=0; 00038 virtual void SendDataFull2()=0; 00039 virtual void SendDataWithID()=0; 00040 virtual void SendDataWithPosID(){}; 00041 virtual void SendDataSum()=0; 00042 virtual void SendDataMax()=0; 00043 00044 public: 00045 InteractionFieldSlave(TML_Comm*,TParallelInteractionStorage<T>*); 00046 virtual void sendData(); 00047 }; 00048 00049 #include "InteractionFieldSlave.hpp" 00050 00051 #endif // __INTERACTIONFIELDSLAVE_H 00052