Reference documentation for deal.II version 9.5.0
\(\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// Copyright (C) 2019 by the deal.II authors
4//
5// This file is part of the deal.II library.
6//
7// The deal.II library is free software; you can use it, redistribute
8// it, and/or modify it under the terms of the GNU Lesser General
9// Public License as published by the Free Software Foundation; either
10// version 2.1 of the License, or (at your option) any later version.
11// The full text of the license can be found in the file LICENSE.md at
12// the top level directory of deal.II.
13//
14// ---------------------------------------------------------------------
15
16
18
19
21
22
23std::size_t
25{
26 return any_data.size();
27}
28
29
30void
32{
33 any_data.insert(other.any_data.begin(), other.any_data.end());
34}
35
36
37void
39{
40 any_data.clear();
41}
42
43
44bool
45GeneralDataStorage::stores_object_with_name(const std::string &name) const
46{
47 return any_data.find(name) != any_data.end();
48}
49
50
51void
53{
54 const auto it = any_data.find(name);
55 if (it != any_data.end())
56 any_data.erase(it);
57}
58
59
60
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, boost::any > any_data
#define DEAL_II_NAMESPACE_OPEN
Definition config.h:472
#define DEAL_II_NAMESPACE_CLOSE
Definition config.h:473