SMILE  v2.5
Schwarzschild Modelling Interactive expLoratory Environment
Public Member Functions | Private Types | Private Attributes | List of all members
smile::CPointMassSetHandler< NumT > Class Template Reference

A helper object for computing the virial ratio for a set of point masses. More...

#include <orbitlib.h>

Public Member Functions

 CPointMassSetHandler (const CPointMassSet< NumT > *_points)
 
void computeVirialRatio (double *T, double *W)
 compute the kinetic and potential energy and return them in these two pointers
 
void halt ()
 stop the computation
 

Private Types

enum  PSTATE { PS_IDLE, PS_RUNNING, PS_NEEDTOTERMINATE, PS_DONE }
 internal state of the object (created/running/done)
 

Private Attributes

const CPointMassSet< NumT > * points
 pointer to the array of bodies
 
volatile PSTATE state
 computation state
 

Detailed Description

template<typename NumT>
class smile::CPointMassSetHandler< NumT >

A helper object for computing the virial ratio for a set of point masses.


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