deal.II version GIT relicensing-6834-g5b78e6bcdf 2026-10-01 11:20:01+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: Apache-2.0 WITH LLVM-exception OR LGPL-2.1-or-later
4// Copyright (C) 2019 - 2026 by the deal.II authors
5//
6// This file is part of the deal.II library.
7//
8// Detailed license information governing the source code and contributions
9// can be found in LICENSE.md and CONTRIBUTING.md at the top level directory.
10//
11// -----------------------------------------------------------------------------
12
13
14#include <deal.II/base/config.h>
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:38
#define DEAL_II_NAMESPACE_CLOSE
Definition config.h:39