Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F67879001
system.cc
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
Mon, Jun 24, 20:53
Size
531 B
Mime Type
text/x-c
Expires
Wed, Jun 26, 20:53 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
18389309
Attached To
R9490 Homework_sp4e_Peruzzo_SáezUribe
system.cc
View Options
#include "system.hh"
Particle
&
System
::
getParticle
(
UInt
i
)
{
return
*
list_particles
[
i
];
}
/* -------------------------------------------------------------------------- */
void
System
::
addParticle
(
const
std
::
shared_ptr
<
Particle
>&
new_particle
)
{
list_particles
.
push_back
(
new_particle
);
}
/* -------------------------------------------------------------------------- */
UInt
System
::
getNbParticles
()
{
return
list_particles
.
size
();
}
/* -------------------------------------------------------------------------- */
Event Timeline
Log In to Comment