dune-vtk 2.12
Loading...
Searching...
No Matches
gridcreators/common.hh
Go to the documentation of this file.
1// SPDX-FileCopyrightText: Copyright © DUNE Project contributors, see file AUTHORS.md
2// SPDX-License-Identifier: LicenseRef-GPL-2.0-only-with-DUNE-exception OR LGPL-3.0-or-later
3#pragma once
4
5#include <type_traits>
6
7namespace Dune::Vtk
8{
9 template <class Factory, class... Args>
10 using HasInsertVertex = decltype( std::declval<Factory>().insertVertex(std::declval<Args>()...) );
11
12 namespace Impl
13 {
14 template <class GF, class = void>
15 struct VertexIdType { using type = unsigned int; };
16
17 template <class GF>
18 struct VertexIdType<GF, typename GF::VertexId> { using type = typename GF::VertexId; };
19 }
20
21 template <class GF>
23
24} // end namespace Dune::Vtk
Definition datacollector.hh:19
typename Impl::VertexIdType< GF >::type VertexId_t
Definition gridcreators/common.hh:22
decltype(std::declval< Factory >().insertVertex(std::declval< Args >()...)) HasInsertVertex
Definition gridcreators/common.hh:10
Implementation of DataCollector for cells, with continuous data.
Definition celltypedatacollector.hh:20