11 #include <boost/ptr_container/ptr_set.hpp> 18 class EventListHandler;
106 friend std::ostream&
operator<<(std::ostream& rOutStream,
const Event& rEvent);
111 void Print(std::ostream& rOutStream)
const;
~Event()
destructor removes itself (this) from the local event lists of both collidables
Definition: Event.cpp:25
static const double EVENTNULL
identifier for null events
Definition: Event.h:36
CollidableBase * mFirst
first CollidableBase involved
Definition: Event.h:93
double GetTime() const
getter for mTime
Definition: Event.cpp:37
void EraseOldEvents(EventListHandler &rEvents) const
removes all events in the local event lists of rEvent
Definition: Event.cpp:58
bool operator<(const Event &rOther) const
important operator for the event list sorting sort priority: time >> collidables
Definition: Event.cpp:73
int GetType() const
getter for type
Definition: Event.cpp:124
Event & operator=(const NuTo::Event &)=default
class for storing events
Definition: Event.h:22
void AddNewEvents(EventListHandler &rEvents) const
creates new events for mFirst and mSecond (–> automatically added to local event lists...
Definition: Event.cpp:49
bool operator!=(Event const &rRhs) const
determines, whether two events are unequal
Definition: Event.cpp:113
EventType
statistics
Definition: Event.h:28
Base class for all collidables.
Definition: CollidableBase.h:22
class for event list operations
Definition: EventListHandler.h:23
bool operator==(Event const &rRhs) const
determines, whether two events are equal
Definition: Event.cpp:97
void PerformCollision() const
performs the collision of mFirst vs. mSecond
Definition: Event.cpp:42
friend std::ostream & operator<<(std::ostream &rOutStream, const Event &rEvent)
Definition: Event.cpp:140
Definition: Exception.h:6
Event(double rTime, CollidableBase *rFirst, CollidableBase *rSecond, int rType)
constructor, initialized with the two CollidableBase objects involved in this collision ...
Definition: Event.cpp:17
CollidableBase * mSecond
second CollidableBase involved
Definition: Event.h:96
std::vector< Event * > LocalEvents
Definition: Event.h:25
void AddLocalEvent()
adds itself (this) to the local event lists of both collidables
Definition: Event.cpp:118