![]() |
NuTo
Numerics Tool
|
class for storing events More...
#include <Event.h>
Public Types | |
| enum | EventType { SphereCollision, WallCollision, WallTransfer } |
| statistics More... | |
| typedef std::vector< Event * > | LocalEvents |
Public Member Functions | |
| Event (double rTime, CollidableBase *rFirst, CollidableBase *rSecond, int rType) | |
| constructor, initialized with the two CollidableBase objects involved in this collision More... | |
| Event (const Event &rEvent)=default | |
| copy constructor More... | |
| Event & | operator= (const NuTo::Event &)=default |
| Event (Event &&rEvent)=default | |
| Event & | operator= (Event &&)=default |
| bool | operator< (const Event &rOther) const |
| important operator for the event list sorting sort priority: time >> collidables More... | |
| bool | operator== (Event const &rRhs) const |
| determines, whether two events are equal More... | |
| bool | operator!= (Event const &rRhs) const |
| determines, whether two events are unequal More... | |
| ~Event () | |
| destructor removes itself (this) from the local event lists of both collidables More... | |
| double | GetTime () const |
| getter for mTime More... | |
| void | AddNewEvents (EventListHandler &rEvents) const |
| creates new events for mFirst and mSecond (–> automatically added to local event lists, see constructor) stores them to the global event list More... | |
| void | EraseOldEvents (EventListHandler &rEvents) const |
| removes all events in the local event lists of rEvent More... | |
| void | PerformCollision () const |
| performs the collision of mFirst vs. mSecond More... | |
| void | AddLocalEvent () |
| adds itself (this) to the local event lists of both collidables More... | |
| int | GetType () const |
| getter for type More... | |
Static Public Attributes | |
| static const double | EVENTNULL = -1. |
| identifier for null events More... | |
Protected Attributes | |
| CollidableBase * | mFirst |
| first CollidableBase involved More... | |
| CollidableBase * | mSecond |
| second CollidableBase involved More... | |
Friends | |
| std::ostream & | operator<< (std::ostream &rOutStream, const Event &rEvent) |
class for storing events
| typedef std::vector<Event*> NuTo::Event::LocalEvents |
| NuTo::Event::Event | ( | double | rTime, |
| CollidableBase * | rFirst, | ||
| CollidableBase * | rSecond, | ||
| int | rType | ||
| ) |
constructor, initialized with the two CollidableBase objects involved in this collision
| rTime | event time |
| rFirst | first CollidableBase involved |
| rSecond | second CollidableBase involved |
|
default |
copy constructor
|
default |
| NuTo::Event::~Event | ( | ) |
destructor removes itself (this) from the local event lists of both collidables
| void NuTo::Event::AddLocalEvent | ( | ) |
adds itself (this) to the local event lists of both collidables
| void NuTo::Event::AddNewEvents | ( | EventListHandler & | rEvents | ) | const |
creates new events for mFirst and mSecond (–> automatically added to local event lists, see constructor) stores them to the global event list
| rEvents | global event list |
| void NuTo::Event::EraseOldEvents | ( | EventListHandler & | rEvents | ) | const |
removes all events in the local event lists of rEvent
| rEvents | global event list |
| double NuTo::Event::GetTime | ( | ) | const |
getter for mTime
| int NuTo::Event::GetType | ( | ) | const |
getter for type
| bool NuTo::Event::operator!= | ( | Event const & | rRhs | ) | const |
determines, whether two events are unequal
| bool NuTo::Event::operator< | ( | const Event & | rOther | ) | const |
important operator for the event list sorting sort priority: time >> collidables
|
default |
| bool NuTo::Event::operator== | ( | Event const & | rRhs | ) | const |
determines, whether two events are equal
| void NuTo::Event::PerformCollision | ( | ) | const |
performs the collision of mFirst vs. mSecond
|
friend |
|
static |
identifier for null events
|
protected |
first CollidableBase involved
|
protected |
second CollidableBase involved
1.8.11