PABLO  0.1
PArallel Balanced Linear Octree
 All Classes Functions Variables Pages
Class_Data_Comm_Interface.hpp
1 // Communications Class for Ghosts Update
2 
3 #ifndef CLASSDATACOMMINTERFACE_HPP_
4 #define CLASSDATACOMMINTERFACE_HPP_
5 
6 #include <stdint.h>
7 
37 template <class Impl>
39 public:
44  size_t size(const uint32_t e) const;
48  size_t fixedSize() const;
49 
50 
68  template<class Buffer>
69  void gather(Buffer & buff,const uint32_t e);
70 
88  template<class Buffer>
89  void scatter(Buffer & buff,const uint32_t e);
90 
91 protected:
93 
94 private:
95  //BartonHackman trick
96  Impl& getImpl();
97  const Impl& getImpl() const;
98 };
99 
100 #include "Class_Data_Comm_Interface.tpp"
101 
102 #endif /* CLASSDATACOMMINTERFACE_HPP_ */
void scatter(Buffer &buff, const uint32_t e)
Base class for data communications.
void gather(Buffer &buff, const uint32_t e)
size_t size(const uint32_t e) const