17 #ifndef dealii_event_h 18 #define dealii_event_h 20 #include <deal.II/base/config.h> 26 DEAL_II_NAMESPACE_OPEN
137 static std::vector<std::string>
names;
180 for (std::vector<bool>::const_iterator i =
flags.begin(); i !=
flags.end();
195 const unsigned int n =
flags.size();
196 const unsigned int m =
event.flags.size();
197 const unsigned int n_min = (n < m) ? n : m;
212 for (std::vector<bool>::const_iterator i =
flags.begin();
223 for (
unsigned int i = 0; i < n_min; ++i)
226 for (
unsigned int i = n_min; i < m; ++i)
241 if (
flags.size() <
event.flags.size())
243 for (
unsigned int i = 0; i <
event.flags.size(); ++i)
259 for (std::vector<bool>::iterator i =
flags.begin(); i !=
flags.end();
265 if (
flags.size() <
event.flags.size())
267 for (
unsigned int i = 0; i <
event.flags.size(); ++i)
282 for (
unsigned int i = 0; i <
flags.size(); ++i)
284 os <<
' ' <<
names[i];
292 for (
unsigned int i = 0; i <
names.size(); ++i)
293 os << i <<
'\t' <<
names[i] << std::endl;
311 DEAL_II_NAMESPACE_CLOSE
static void print_assigned(OS &os)
Event & operator-=(const Event &event)
std::vector< bool > flags
const Event bad_derivative
Event & operator+=(const Event &event)
static Event assign(const char *name)
const Event new_timestep_size
OS & operator<<(OS &o, const Event &e)
static std::vector< std::string > names
bool test(const Event &event) const