Class managing the particles in GGEMS.
More...
#include "GGEMSParticles.hh"
Class managing the particles in GGEMS.
Definition at line 47 of file GGEMSParticles.hh.
◆ GGEMSParticles() [1/3]
GGEMSParticles::GGEMSParticles |
( |
void |
| ) |
|
◆ ~GGEMSParticles()
GGEMSParticles::~GGEMSParticles |
( |
void |
| ) |
|
◆ GGEMSParticles() [2/3]
Avoid copy of the class by reference.
- Parameters
-
particle | - reference on the particle |
◆ GGEMSParticles() [3/3]
Avoid copy of the class by rvalue reference.
- Parameters
-
particle | - rvalue reference on the particle |
◆ AllocatePrimaryParticles()
void GGEMSParticles::AllocatePrimaryParticles |
( |
void |
| ) |
|
|
private |
◆ Dump()
void GGEMSParticles::Dump |
( |
std::string const & |
message | ) |
const |
dump particle infos
- Parameters
-
message | - message for dumping |
◆ GetNumberOfParticles()
GGsize GGEMSParticles::GetNumberOfParticles |
( |
GGsize const & |
thread_index | ) |
const |
|
inline |
Get the number of particles on activated device.
- Parameters
-
thread_index | - index of activated device (thread index) |
- Returns
- number of particles currently activated in OpenCL buffer
Definition at line 116 of file GGEMSParticles.hh.
◆ GetPrimaryParticles()
cl::Buffer * GGEMSParticles::GetPrimaryParticles |
( |
GGsize const & |
thread_index | ) |
const |
|
inline |
return the pointer to OpenCL buffer storing particles
- Parameters
-
thread_index | - index of activated device (thread index) |
- Returns
- pointer to OpenCL buffer storing particles
Definition at line 100 of file GGEMSParticles.hh.
◆ Initialize()
void GGEMSParticles::Initialize |
( |
void |
| ) |
|
◆ InitializeKernel()
void GGEMSParticles::InitializeKernel |
( |
void |
| ) |
|
|
private |
◆ IsAlive()
bool GGEMSParticles::IsAlive |
( |
GGsize const & |
thread_index | ) |
const |
check if some particles are alive in OpenCL particle buffer
- Parameters
-
thread_index | - index of activated device (thread index) |
- Returns
- true if source is still alive, otherwize false
Definition at line 119 of file GGEMSParticles.hh.
◆ operator=() [1/2]
Avoid copy of the class by rvalue reference.
- Parameters
-
particle | - rvalue reference on the particle |
◆ operator=() [2/2]
Avoid assignement of the class by reference.
- Parameters
-
particle | - reference on the particle |
◆ SetNumberOfParticles()
void GGEMSParticles::SetNumberOfParticles |
( |
GGsize const & |
thread_index, |
|
|
GGsize const & |
number_of_particles |
|
) |
| |
Set the number of particles in buffer.
- Parameters
-
thread_index | - index of activated device (thread index) |
number_of_particles | - number of activated particles in buffer |
Definition at line 103 of file GGEMSParticles.hh.
◆ kernel_alive_
cl::Kernel** GGEMSParticles::kernel_alive_ |
|
private |
◆ number_activated_devices_
GGsize GGEMSParticles::number_activated_devices_ |
|
private |
◆ number_of_particles_
GGsize* GGEMSParticles::number_of_particles_ |
|
private |
◆ primary_particles_
cl::Buffer** GGEMSParticles::primary_particles_ |
|
private |
Pointer storing info about primary particles in batch on OpenCL device
Definition at line 148 of file GGEMSParticles.hh.
◆ status_
cl::Buffer** GGEMSParticles::status_ |
|
private |
The documentation for this class was generated from the following files: