Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F87330419
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
Sat, Oct 12, 01:15
Size
1 KB
Mime Type
text/x-c++
Expires
Mon, Oct 14, 01:15 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
21531783
Attached To
R9490 Homework_sp4e_Peruzzo_SáezUribe
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