dune-istl
2.11
Toggle main menu visibility
Loading...
Searching...
No Matches
dune
istl
paamg
properties.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_ISTL_AMG_PROPERTIES_HH
6
#define DUNE_ISTL_AMG_PROPERTIES_HH
7
8
#include <dune/common/propertymap.hh>
9
10
namespace
Dune
11
{
12
13
namespace
Amg
14
{
24
28
struct
VertexVisitedTag
29
{};
30
31
38
template
<
typename
C,
typename
K, std::size_t i,
typename
T=
typename
C::ValueType,
39
typename
R =
typename
C::Reference>
40
class
RandomAccessBundledPropertyMap
41
:
public
RAPropertyMapHelper<R,
42
RandomAccessBundledPropertyMap<C,K,i,T,R> >
43
{
44
public
:
46
typedef
C
Container
;
47
49
typedef
R
Reference
;
50
52
typedef
K
Key
;
53
57
typedef
LvaluePropertyMapTag
Category
;
58
59
enum
{
61
index
= i
62
};
63
69
Reference
operator[]
(
const
Key
& key)
const
70
{
71
return
container_[key][
index
];
72
}
73
78
RandomAccessBundledPropertyMap
(
Container
& container)
79
: container_(&container)
80
{}
81
83
RandomAccessBundledPropertyMap
()
84
: container_(0)
85
{}
86
87
private
:
89
Container
* container_;
90
};
91
}
92
}
93
94
#endif
Dune::Amg::RandomAccessBundledPropertyMap::operator[]
Reference operator[](const Key &key) const
Get the property for a key.
Definition
properties.hh:69
Dune::Amg::RandomAccessBundledPropertyMap::RandomAccessBundledPropertyMap
RandomAccessBundledPropertyMap()
The default constructor.
Definition
properties.hh:83
Dune::Amg::RandomAccessBundledPropertyMap::Reference
R Reference
The reference type of the container.
Definition
properties.hh:49
Dune::Amg::RandomAccessBundledPropertyMap::RandomAccessBundledPropertyMap
RandomAccessBundledPropertyMap(Container &container)
Constructor.
Definition
properties.hh:78
Dune::Amg::RandomAccessBundledPropertyMap::Key
K Key
The key of the property map.
Definition
properties.hh:52
Dune::Amg::RandomAccessBundledPropertyMap::Category
LvaluePropertyMapTag Category
The category of the property map.
Definition
properties.hh:57
Dune::Amg::RandomAccessBundledPropertyMap::Container
C Container
The container that holds the properties.
Definition
properties.hh:46
Dune::Amg::RandomAccessBundledPropertyMap::index
@ index
The index of the property in the bundle.
Definition
properties.hh:61
Dune
Definition
allocator.hh:11
Dune::Amg
Definition
novlpschwarz.hh:256
Dune::Amg::VertexVisitedTag
Tag idnetifying the visited property of a vertex.
Definition
properties.hh:29
Generated by
1.17.0