deal.II version GIT relicensing-1989-gd7a2c90e4e 2024-10-14 01:50:00+00:00
\(\newcommand{\dealvcentcolon}{\mathrel{\mathop{:}}}\) \(\newcommand{\dealcoloneq}{\dealvcentcolon\mathrel{\mkern-1.2mu}=}\) \(\newcommand{\jump}[1]{\left[\!\left[ #1 \right]\!\right]}\) \(\newcommand{\average}[1]{\left\{\!\left\{ #1 \right\}\!\right\}}\)
Loading...
Searching...
No Matches
general_data_storage.cc
Go to the documentation of this file.
1// ------------------------------------------------------------------------
2//
3// SPDX-License-Identifier: LGPL-2.1-or-later
4// Copyright (C) 2019 by the deal.II authors
5//
6// This file is part of the deal.II library.
7//
8// Part of the source code is dual licensed under Apache-2.0 WITH
9// LLVM-exception OR LGPL-2.1-or-later. Detailed license information
10// governing the source code and code contributions can be found in
11// LICENSE.md and CONTRIBUTING.md at the top level directory of deal.II.
12//
13// ------------------------------------------------------------------------
14
15
17
18
20
21
22std::size_t
24{
25 return any_data.size();
26}
27
28
29void
31{
32 any_data.insert(other.any_data.begin(), other.any_data.end());
33}
34
35
36void
38{
39 any_data.clear();
40}
41
42
43bool
44GeneralDataStorage::stores_object_with_name(const std::string &name) const
45{
46 return any_data.find(name) != any_data.end();
47}
48
49
50void
52{
53 const auto it = any_data.find(name);
54 if (it != any_data.end())
55 any_data.erase(it);
56}
57
58
59
std::size_t size() const
void merge(const GeneralDataStorage &other_data)
void remove_object_with_name(const std::string &name)
bool stores_object_with_name(const std::string &name) const
std::map< std::string, std::any > any_data
#define DEAL_II_NAMESPACE_OPEN
Definition config.h:498
#define DEAL_II_NAMESPACE_CLOSE
Definition config.h:499