Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F63656190
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
Tue, May 21, 16:00
Size
1 KB
Mime Type
text/x-c++
Expires
Thu, May 23, 16:00 (2 d)
Engine
blob
Format
Raw Data
Handle
17802114
Attached To
R9482 SP4E_Homework_Ashtari_Sieber
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
,
int
argc
,
char
**
argv
)
override
;
std
::
unique_ptr
<
Particle
>
createParticle
()
override
;
static
ParticlesFactoryInterface
&
getInstance
();
};
/* -------------------------------------------------------------------------- */
#endif
//__PING_PING_BALLS_FACTORY__HH__
Event Timeline
Log In to Comment