Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F82241168
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, Sep 10, 08:36
Size
1 KB
Mime Type
text/x-c++
Expires
Thu, Sep 12, 08:36 (2 d)
Engine
blob
Format
Raw Data
Handle
20670102
Attached To
R9316 Omid_Ashtari
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