\( \newcommand{\E}{\mathrm{E}} \) \( \newcommand{\A}{\mathrm{A}} \) \( \newcommand{\R}{\mathrm{R}} \) \( \newcommand{\N}{\mathrm{N}} \) \( \newcommand{\Q}{\mathrm{Q}} \) \( \newcommand{\Z}{\mathrm{Z}} \) \( \def\ccSum #1#2#3{ \sum_{#1}^{#2}{#3} } \def\ccProd #1#2#3{ \sum_{#1}^{#2}{#3} }\)
CGAL 4.8.1 - Kinetic Data Structures
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Groups Pages
CGAL::Kinetic::Erase_event< ActiveObjectsTable > Class Template Reference

#include <CGAL/Kinetic/Erase_event.h>

Definition

This event erases a point from the ActiveObjectsTable when it is processed.

Is Model Of:
Kinetic::Simulator::Event
See Also
Kinetic::ActiveObjectsTable
Kinetic::Active_objects_vector<MovingObject>

Example

typedef CGAL::Kinetic::Exact_simulation_traits Simulation_traits;
typedef Simulation_traits::Kinetic_kernel::Point_2 Moving_point_2;
Simulation_traits tr;
KDel kdel(tr);
Moving_point_2 mp(Moving_point_2::NT(0),
Moving_point_2::NT(0));
tr.simulator_handle()->new_event(Simulation_traits::Simulator::Time(3),
Erase_event(*tr.active_objects_table_handle()->keys_begin(),
tr.active_points_2_table_handle()));

Creation

 Insert_event (ActiveObjectsTable::Key k, ActiveObjectsTable::Handle t)
 Erase the object k from the table t when processed.