35 , object_info(subscriptor.object_info)
37 for (
const auto validity_ptr : subscriptor.validity_pointers)
38 *validity_ptr =
false;
39 subscriptor.validity_pointers.clear();
47 *validity_ptr =
false;
77# if __cpp_lib_uncaught_exceptions >= 201411
79 if (std::uncaught_exceptions() == 0)
81 if (std::uncaught_exception() ==
false)
84 std::string infostring;
87 if (map_entry.second > 0)
88 infostring += std::string(
"\n from Subscriber ") +
89 std::string(map_entry.first);
92 if (infostring.empty())
93 infostring =
"<none>";
103 <<
"---------------------------------------------------------"
105 <<
"An object pointed to by a SmartPointer is being destroyed."
107 <<
"Under normal circumstances, this would abort the program."
109 <<
"However, another exception is being processed at the"
111 <<
"moment, so the program will continue to run to allow"
113 <<
"this exception to be processed." << std::endl
114 <<
"---------------------------------------------------------"
126 for (
const auto validity_ptr : s.validity_pointers)
127 *validity_ptr =
false;
129 object_info = s.object_info;
137 const std::string &
id)
const
139 std::lock_guard<std::mutex> lock(
mutex);
157 const std::string &
id)
const
168 std::lock_guard<std::mutex> lock(
mutex);
185 auto validity_ptr_it =
192 "This Subscriptor object does not know anything about the supplied pointer!"));
std::vector< std::atomic< bool > * > validity_pointers
void unsubscribe(std::atomic< bool > *const validity, const std::string &identifier="") const
std::atomic< unsigned int > counter
void check_no_subscribers() const noexcept
void list_subscribers() const
const std::type_info * object_info
Subscriptor & operator=(const Subscriptor &)
void subscribe(std::atomic< bool > *const validity, const std::string &identifier="") const
std::map< std::string, unsigned int > counter_map
decltype(counter_map)::iterator map_iterator
#define DEAL_II_NAMESPACE_OPEN
#define DEAL_II_NAMESPACE_CLOSE
static ::ExceptionBase & ExcInUse(int arg1, std::string arg2, std::string arg3)
#define AssertNothrow(cond, exc)
static ::ExceptionBase & ExcNoSubscriber(std::string arg1, std::string arg2)
static ::ExceptionBase & ExcMessage(std::string arg1)
static const char * unknown_subscriber