dune-grid  2.11
archetypes/messagebuffer.hh
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright © DUNE Project contributors, see file LICENSE.md in module root
2 // SPDX-License-Identifier: LicenseRef-GPL-2.0-only-with-DUNE-exception
3 // -*- tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
4 // vi: set et ts=4 sw=2 sts=2:
5 #ifndef DUNE_GRID_CONCEPTS_ARCHETYPES_MESSAGEBUFFER_HH
6 #define DUNE_GRID_CONCEPTS_ARCHETYPES_MESSAGEBUFFER_HH
7 
8 #ifndef DOXYGEN
9 namespace Dune::Concept::Archetypes {
10 
11 template <class DataType>
12 struct MessageBuffer
13 {
14  void write(const DataType& data);
15  void read(DataType& data);
16 };
17 
18 } // end namespace Dune::Concept::Archetypes
19 #endif // DOXYGEN
20 
21 #endif // DUNE_GRID_CONCEPTS_ARCHETYPES_MESSAGEBUFFER_HH
concept MessageBuffer
Model of a message buffer.
Definition: messagebuffer.hh:17