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 __MESSAGE_H 00014 #define __MESSAGE_H 00015 00016 #include <mpi.h> 00025 class TML_Message 00026 { 00027 protected: 00028 MPI_Status m_status; 00029 00030 public: 00031 virtual ~TML_Message(){}; 00032 00033 virtual void clear()=0; 00034 virtual size_t size(); 00035 template <class T> virtual void append(T)=0; 00036 template <class T> virtual pop(T&)=0; 00037 const MPI_Status& status(){return m_status;}; 00038 }; 00039 #endif // __MESSAGE_H