PeTar
N-body code for collisional gravitational systems
NumCounter Struct Reference

#include <profile.hpp>

Public Member Functions

 NumCounter (const char *_name)
 
NumCounteroperator++ ()
 
NumCounteroperator+= (const PS::S64 _n)
 
NumCounteroperator= (const PS::S64 _n)
 
void print (std::ostream &fout, const PS::S32 divider=1) const
 
void dump (std::ostream &fout, const PS::S32 divider=1, const PS::S32 width=PROFILE_PRINT_WIDTH) const
 
void dumpName (std::ostream &fout, const PS::S32 width=PROFILE_PRINT_WIDTH) const
 

Public Attributes

PS::S64 n
 
const char * name
 

Constructor & Destructor Documentation

◆ NumCounter()

NumCounter::NumCounter ( const char *  _name)
inline

Member Function Documentation

◆ dump()

void NumCounter::dump ( std::ostream &  fout,
const PS::S32  divider = 1,
const PS::S32  width = PROFILE_PRINT_WIDTH 
) const
inline
Here is the caller graph for this function:

◆ dumpName()

void NumCounter::dumpName ( std::ostream &  fout,
const PS::S32  width = PROFILE_PRINT_WIDTH 
) const
inline
Here is the caller graph for this function:

◆ operator++()

NumCounter& NumCounter::operator++ ( )
inline

◆ operator+=()

NumCounter& NumCounter::operator+= ( const PS::S64  _n)
inline

◆ operator=()

NumCounter& NumCounter::operator= ( const PS::S64  _n)
inline

◆ print()

void NumCounter::print ( std::ostream &  fout,
const PS::S32  divider = 1 
) const
inline

Member Data Documentation

◆ n

PS::S64 NumCounter::n

◆ name

const char* NumCounter::name

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