![]() |
Lethe Open-Source Library version 1.2.0
Developer Guide
|
#include <log_collision_data.h>
Public Member Functions | |
| void | start_collision (const collision_log< dim > &log) |
| void | end_collision (const unsigned int particle_id, const types::boundary_id boundary_id, collision_log< dim > &start_log) |
| bool | is_in_collision (const unsigned int particle_id, const types::boundary_id boundary_id) const |
Private Attributes | |
| std::map< std::pair< unsigned int, types::boundary_id >, collision_log< dim > > | ongoing_collisions |
Class managing the ongoing collisions.
Definition at line 46 of file log_collision_data.h.
|
inline |
End a collision for a particle. Retrieve the start log and remove the particle from the ongoing collisions.
| [in] | particle_id | The id of the particle that ended the collision. |
| [out] | start_log | The log of the collision start to be filled. |
Definition at line 67 of file log_collision_data.h.
References ongoing_collisions.
|
inline |
Check whether the particle is currently in a collision.
| [in] | particle_id | The id of the particle to check. |
Definition at line 83 of file log_collision_data.h.
References ongoing_collisions.
|
inline |
Start logging a collision for a particle. If the particle is already present in the log, it does nothing.
| [in] | log | The collision log to be added for the particle. |
Definition at line 55 of file log_collision_data.h.
References collision_log< dim >::boundary_id, ongoing_collisions, and collision_log< dim >::particle_id.
|
private |
Definition at line 94 of file log_collision_data.h.