Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F79583335
planets_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, Aug 27, 05:29
Size
1 KB
Mime Type
text/x-c++
Expires
Thu, Aug 29, 05:29 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
20023114
Attached To
R7561 SP4E_HW1
planets_factory.hh
View Options
#ifndef __PLANETS_FACTORY__HH__
#define __PLANETS_FACTORY__HH__
/* -------------------------------------------------------------------------- */
#include "particles_factory_interface.hh"
#include "planet.hh"
/* -------------------------------------------------------------------------- */
//! Factory for planet simulations
class
PlanetsFactory
:
public
ParticlesFactoryInterface
{
/* ------------------------------------------------------------------------ */
/* Constructors/Destructors */
/* ------------------------------------------------------------------------ */
private
:
PlanetsFactory
()
=
default
;
/* ------------------------------------------------------------------------ */
/* Methods */
/* ------------------------------------------------------------------------ */
public
:
SystemEvolution
&
createSimulation
(
const
std
::
string
&
fname
,
Real
timestep
)
override
;
std
::
unique_ptr
<
Particle
>
createParticle
()
override
;
static
ParticlesFactoryInterface
&
getInstance
();
};
/* -------------------------------------------------------------------------- */
#endif
//__PLANETS_FACTORY__HH__
Event Timeline
Log In to Comment