Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F91153354
ping_pong_balls_factory.hh
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Fri, Nov 8, 10:46
Size
1 KB
Mime Type
text/x-c++
Expires
Sun, Nov 10, 10:46 (2 d)
Engine
blob
Format
Raw Data
Handle
22206745
Attached To
R7554 sp4e_exercices
ping_pong_balls_factory.hh
View Options
#ifndef __PING_PING_BALLS_FACTORY__HH__
#define __PING_PING_BALLS_FACTORY__HH__
/* -------------------------------------------------------------------------- */
#include "particles_factory_interface.hh"
#include "ping_pong_ball.hh"
/* -------------------------------------------------------------------------- */
//! Factory for ping-pong balls
class
PingPongBallsFactory
:
public
ParticlesFactoryInterface
{
/* ------------------------------------------------------------------------ */
/* Constructors/Destructors */
/* ------------------------------------------------------------------------ */
private
:
PingPongBallsFactory
()
=
default
;
/* ------------------------------------------------------------------------ */
/* Methods */
/* ------------------------------------------------------------------------ */
public
:
SystemEvolution
&
createSimulation
(
const
std
::
string
&
fname
,
Real
timestep
)
override
;
std
::
unique_ptr
<
Particle
>
createParticle
()
override
;
static
ParticlesFactoryInterface
&
getInstance
();
};
/* -------------------------------------------------------------------------- */
#endif
//__PING_PING_BALLS_FACTORY__HH__
Event Timeline
Log In to Comment