Fast Methods for Cosmological Simulations
FastSim serves as a tool for quick N-body simulations in modified gravity.
Particle_x< T > Class Template Reference

class handling particles (position only) More...

#include <class_particles.hpp>

Inheritance diagram for Particle_x< T >:
Collaboration diagram for Particle_x< T >:

Public Member Functions

 Particle_x ()
 
template<typename U >
 Particle_x (Vec_3D< U > position)
 
T & operator[] (unsigned int i)
 get position coordinates More...
 
const T & operator[] (unsigned int i) const
 

Public Attributes

Vec_3D< T > position
 

Detailed Description

template<typename T>
class Particle_x< T >

class handling particles (position only)

Template Parameters
Tcoordinate type (float, double or long double)

operator [] to get position coordinates

Definition at line 22 of file class_particles.hpp.

Constructor & Destructor Documentation

template<typename T>
Particle_x< T >::Particle_x ( )
inline

Definition at line 26 of file class_particles.hpp.

26 {};
template<typename T>
template<typename U >
Particle_x< T >::Particle_x ( Vec_3D< U >  position)
inline

Definition at line 28 of file class_particles.hpp.

28  :
29  position(position) {};
Vec_3D< T > position

Member Function Documentation

template<typename T>
T& Particle_x< T >::operator[] ( unsigned int  i)
inline

get position coordinates

Parameters
iaxis
Returns
T& position

Definition at line 40 of file class_particles.hpp.

40 { return position[i]; }
Vec_3D< T > position
template<typename T>
const T& Particle_x< T >::operator[] ( unsigned int  i) const
inline

Definition at line 41 of file class_particles.hpp.

41 { return position[i]; }
Vec_3D< T > position

Member Data Documentation

template<typename T>
Vec_3D<T> Particle_x< T >::position

Definition at line 29 of file class_particles.hpp.

Referenced by TEST_CASE().


The documentation for this class was generated from the following file: