|
Reference documentation for deal.II version 9.2.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\}}\)
Go to the documentation of this file.
16 #ifndef dealii_subscriptor_h
17 #define dealii_subscriptor_h
111 subscribe(std::atomic<bool> *
const validity,
112 const std::string & identifier =
"")
const;
122 const std::string & identifier =
"")
const;
135 template <
typename StreamType>
157 <<
"Object of class " << arg2 <<
" is still used by " << arg1
160 <<
"(Additional information: " << arg3 <<
")\n\n"
161 <<
"See the entry in the Frequently Asked Questions of "
162 <<
"deal.II (linked to from http://www.dealii.org/) for "
163 <<
"a lot more information on what this error means and "
164 <<
"how to fix programs in which it happens.");
173 <<
"No subscriber with identifier <" << arg2
174 <<
"> subscribes to this object of class " << arg1
175 <<
". Consequently, it cannot be unsubscribed.");
190 template <
class Archive>
192 serialize(Archive &ar,
const unsigned int version);
299 template <
class Archive>
307 template <
typename StreamType>
311 std::lock_guard<std::mutex> lock(
mutex);
314 stream << it.second <<
'/' <<
counter <<
" subscriptions from \""
315 << it.first <<
'\"' << std::endl;
static ::ExceptionBase & ExcInUse(int arg1, std::string arg2, std::string arg3)
const std::type_info * object_info
decltype(counter_map)::value_type map_value_type
void unsubscribe(std::atomic< bool > *const validity, const std::string &identifier="") const
decltype(counter_map)::iterator map_iterator
Subscriptor & operator=(const Subscriptor &)
std::vector< std::atomic< bool > * > validity_pointers
void serialize(Archive &ar, const unsigned int version)
void subscribe(std::atomic< bool > *const validity, const std::string &identifier="") const
unsigned int n_subscriptions() const
void check_no_subscribers() const noexcept
void list_subscribers() const
#define DEAL_II_NAMESPACE_OPEN
#define DeclException3(Exception3, type1, type2, type3, outsequence)
std::map< std::string, unsigned int > counter_map
static ::ExceptionBase & ExcNoSubscriber(std::string arg1, std::string arg2)
#define DEAL_II_NAMESPACE_CLOSE
std::atomic< unsigned int > counter
#define DeclException2(Exception2, type1, type2, outsequence)