PeTar
N-body code for collisional gravitational systems
Status::ParticleCM Struct Reference

#include <status.hpp>

Public Member Functions

 ParticleCM ()
 
void printColumnTitle (std::ofstream &_fout, const PS::S32 _width=20)
 print titles of class members using column style More...
 
void printColumn (std::ofstream &_fout, const PS::S32 _width=20)
 print data of class members using column style More...
 
void print (std::ostream &_fout)
 print title and values in one lines More...
 
void clear ()
 

Public Attributes

PS::F64 mass
 
PS::F64vec pos
 
PS::F64vec vel
 
bool is_center_shift_flag
 

Constructor & Destructor Documentation

◆ ParticleCM()

Status::ParticleCM::ParticleCM ( )
inline

Member Function Documentation

◆ clear()

void Status::ParticleCM::clear ( )
inline
Here is the caller graph for this function:

◆ print()

void Status::ParticleCM::print ( std::ostream &  _fout)
inline

print title and values in one lines

print titles and values in one lines

Parameters
[out]_foutstd::ostream output object
Here is the caller graph for this function:

◆ printColumn()

void Status::ParticleCM::printColumn ( std::ofstream &  _fout,
const PS::S32  _width = 20 
)
inline

print data of class members using column style

print data of class members in one line for column style. Notice no newline is printed at the end

Parameters
[out]_foutstd::ostream output object
[in]_widthprint width (defaulted 20)
Here is the caller graph for this function:

◆ printColumnTitle()

void Status::ParticleCM::printColumnTitle ( std::ofstream &  _fout,
const PS::S32  _width = 20 
)
inline

print titles of class members using column style

print titles of class members in one line for column style

Parameters
[out]_foutstd::ostream output object
[in]_widthprint width (defaulted 20)
Here is the caller graph for this function:

Member Data Documentation

◆ is_center_shift_flag

bool Status::ParticleCM::is_center_shift_flag

◆ mass

PS::F64 Status::ParticleCM::mass

◆ pos

PS::F64vec Status::ParticleCM::pos

◆ vel

PS::F64vec Status::ParticleCM::vel

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