Loading...
Searching...
No Matches
DataCommInterface.hpp
1/*---------------------------------------------------------------------------*\
2 *
3 * bitpit
4 *
5 * Copyright (C) 2015-2021 OPTIMAD engineering Srl
6 *
7 * -------------------------------------------------------------------------
8 * License
9 * This file is part of bitpit.
10 *
11 * bitpit is free software: you can redistribute it and/or modify it
12 * under the terms of the GNU Lesser General Public License v3 (LGPL)
13 * as published by the Free Software Foundation.
14 *
15 * bitpit is distributed in the hope that it will be useful, but WITHOUT
16 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
17 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
18 * License for more details.
19 *
20 * You should have received a copy of the GNU Lesser General Public License
21 * along with bitpit. If not, see <http://www.gnu.org/licenses/>.
22 *
23\*---------------------------------------------------------------------------*/
24
25// Communications Class for Ghosts Update
26
27#ifndef __BITPIT_PABLO_DATA_COMM_INTERFACE_HPP__
28#define __BITPIT_PABLO_DATA_COMM_INTERFACE_HPP__
29
30namespace bitpit {
31
61template <class Impl>
63public:
64 size_t size(const uint32_t e) const;
65 size_t fixedSize() const;
66
67 template<class Buffer>
68 void gather(Buffer & buff,const uint32_t e);
69
70 template<class Buffer>
71 void scatter(Buffer & buff,const uint32_t e);
72
73protected:
75
76private:
77 //BartonHackman trick
78 Impl& getImpl();
79 const Impl& getImpl() const;
80};
81
82}
83
84#include "DataCommInterface.tpp"
85
86#endif /* __BITPIT_PABLO_DATA_COMM_INTERFACE_HPP__ */
Base class for data communications.
void scatter(Buffer &buff, const uint32_t e)
void gather(Buffer &buff, const uint32_t e)
size_t size(const uint32_t e) const
--- layout: doxygen_footer ---