Dune Core Modules (unstable)

messagebuffer.hh
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_CONCEPT_MESSAGEBUFFER_HH
6#define DUNE_GRID_CONCEPT_MESSAGEBUFFER_HH
7
8#include <dune/grid/concepts/archetypes/messagebuffer.hh>
9
10namespace Dune::Concept {
11
16template<class MB, class DataType>
17concept MessageBuffer = requires(MB mb, DataType& data)
18{
19 mb.write(data);
20 mb.read(data);
21};
22
24
25} // end namespace Dune::Concept
26
27
28#endif // DUNE_GRID_CONCEPT_MESSAGEBUFFER_HH
Model of a message buffer.
Definition: messagebuffer.hh:17
Namespace for concepts.
Definition: concept.hh:34
Creative Commons License   |  Legal Statements / Impressum  |  Hosted by TU Dresden  |  generated with Hugo v0.111.3 (Jul 15, 22:36, 2024)