BodyConstants Class Reference

#include <orsa_body.h>

List of all members.

Public Member Functions

 BodyConstants ()
 BodyConstants (const std::string &name, const double mass)
 BodyConstants (const std::string &name, const double mass, const double radius)
 BodyConstants (const std::string &name, const double mass, const double radius, const JPL_planets)
 BodyConstants (const std::string &name, const double mass, const double radius, const double J2, const double J3, const double J4)
 BodyConstants (const std::string &name, const double mass, const double radius, const JPL_planets, const double J2, const double J3, const double J4)
 BodyConstants (const std::string &name, const double mass, const double radius, const double J2, const double J3, const double J4, const double C22, const double C31, const double C32, const double C33, const double C41, const double C42, const double C43, const double C44, const double S31, const double S32, const double S33, const double S41, const double S42, const double S43, const double S44)
 BodyConstants (const std::string &name, const double mass, const double radius, const JPL_planets, const double J2, const double J3, const double J4, const double C22, const double C31, const double C32, const double C33, const double C41, const double C42, const double C43, const double C44, const double S31, const double S32, const double S33, const double S41, const double S42, const double S43, const double S44)
 ~BodyConstants ()
const std::string & name () const
double mass () const
double mu () const
bool has_zero_mass () const
double radius () const
JPL_planets JPLPlanet () const
double J2 () const
double J3 () const
double J4 () const
double C22 () const
double C31 () const
double C32 () const
double C33 () const
double C41 () const
double C42 () const
double C43 () const
double C44 () const
double S31 () const
double S32 () const
double S33 () const
double S41 () const
double S42 () const
double S43 () const
double S44 () const
void AddUser ()
void RemoveUser ()
unsigned int Users () const
unsigned int BodyId () const
unsigned int Id () const

Protected Attributes

unsigned int users

Static Protected Attributes

static std::list< BodyConstants * > list_bc


Constructor & Destructor Documentation

BodyConstants  ) 
 

Definition at line 41 of file orsa_body.cc.

References BodyConstants::list_bc, orsa::NONE, and BodyConstants::users.

00041                                : name_(""), mass_(0.0), mu_(0.0), zero_mass_(mass_ == 0.0), radius_(0.0), planet_(NONE), J2_(0.0), J3_(0.0), J4_(0.0), C22_(0.0), C31_(0.0), C32_(0.0), C33_(0.0), C41_(0.0), C42_(0.0), C43_(0.0), C44_(0.0), S31_(0.0), S32_(0.0), S33_(0.0), S41_(0.0), S42_(0.0), S43_(0.0), S44_(0.0), id(used_body_id++) { 
00042     users = 1;
00043     list_bc.push_back(this);
00044   }

BodyConstants const std::string &  name,
const double  mass
 

Definition at line 46 of file orsa_body.cc.

References orsa::GetG(), BodyConstants::list_bc, orsa::NONE, and BodyConstants::users.

00046                                                                      : name_(name), mass_(mass), mu_(GetG()*mass_), zero_mass_(mass_ == 0.0), radius_(0.0), planet_(NONE), J2_(0.0), J3_(0.0), J4_(0.0), C22_(0.0), C31_(0.0), C32_(0.0), C33_(0.0), C41_(0.0), C42_(0.0), C43_(0.0), C44_(0.0), S31_(0.0), S32_(0.0), S33_(0.0), S41_(0.0), S42_(0.0), S43_(0.0), S44_(0.0), id(used_body_id++) {
00047     users = 1;
00048     list_bc.push_back(this);
00049   }

Here is the call graph for this function:

BodyConstants const std::string &  name,
const double  mass,
const double  radius
 

Definition at line 51 of file orsa_body.cc.

References orsa::GetG(), BodyConstants::list_bc, orsa::NONE, orsa::radius(), and BodyConstants::users.

00051                                                                                           : name_(name), mass_(mass), mu_(GetG()*mass_), zero_mass_(mass_ == 0.0), radius_(radius), planet_(NONE), J2_(0.0), J3_(0.0), J4_(0.0), C22_(0.0), C31_(0.0), C32_(0.0), C33_(0.0), C41_(0.0), C42_(0.0), C43_(0.0), C44_(0.0), S31_(0.0), S32_(0.0), S33_(0.0), S41_(0.0), S42_(0.0), S43_(0.0), S44_(0.0), id(used_body_id++) {
00052     users = 1;
00053     list_bc.push_back(this);
00054   }

Here is the call graph for this function:

BodyConstants const std::string &  name,
const double  mass,
const double  radius,
const   JPL_planets
 

Definition at line 56 of file orsa_body.cc.

References orsa::GetG(), BodyConstants::list_bc, orsa::radius(), and BodyConstants::users.

00056                                                                                                                : name_(name), mass_(mass), mu_(GetG()*mass_), zero_mass_(mass_ == 0.0), radius_(radius), planet_(p), J2_(0.0), J3_(0.0), J4_(0.0), C22_(0.0), C31_(0.0), C32_(0.0), C33_(0.0), C41_(0.0), C42_(0.0), C43_(0.0), C44_(0.0), S31_(0.0), S32_(0.0), S33_(0.0), S41_(0.0), S42_(0.0), S43_(0.0), S44_(0.0), id(used_body_id++) {
00057     users = 1;
00058     list_bc.push_back(this);
00059   }

Here is the call graph for this function:

BodyConstants const std::string &  name,
const double  mass,
const double  radius,
const double  J2,
const double  J3,
const double  J4
 

Definition at line 61 of file orsa_body.cc.

References orsa::GetG(), BodyConstants::list_bc, orsa::NONE, orsa::radius(), and BodyConstants::users.

00061                                                                                                                                              : name_(name), mass_(mass), mu_(GetG()*mass_), zero_mass_(mass_ == 0.0), radius_(radius), planet_(NONE), J2_(J2), J3_(J3), J4_(J4), C22_(0.0), C31_(0.0), C32_(0.0), C33_(0.0), C41_(0.0), C42_(0.0), C43_(0.0), C44_(0.0), S31_(0.0), S32_(0.0), S33_(0.0), S41_(0.0), S42_(0.0), S43_(0.0), S44_(0.0), id(used_body_id++) {
00062     users = 1;
00063     list_bc.push_back(this);
00064   }

Here is the call graph for this function:

BodyConstants const std::string &  name,
const double  mass,
const double  radius,
const   JPL_planets,
const double  J2,
const double  J3,
const double  J4
 

Definition at line 66 of file orsa_body.cc.

References orsa::GetG(), BodyConstants::list_bc, orsa::radius(), and BodyConstants::users.

00066                                                                                                                                                                   : name_(name), mass_(mass), mu_(GetG()*mass_), zero_mass_(mass_ == 0.0), radius_(radius), planet_(p), J2_(J2), J3_(J3), J4_(J4), C22_(0.0), C31_(0.0), C32_(0.0), C33_(0.0), C41_(0.0), C42_(0.0), C43_(0.0), C44_(0.0), S31_(0.0), S32_(0.0), S33_(0.0), S41_(0.0), S42_(0.0), S43_(0.0), S44_(0.0), id(used_body_id++) {
00067     users = 1;
00068     list_bc.push_back(this);
00069   }

Here is the call graph for this function:

BodyConstants const std::string &  name,
const double  mass,
const double  radius,
const double  J2,
const double  J3,
const double  J4,
const double  C22,
const double  C31,
const double  C32,
const double  C33,
const double  C41,
const double  C42,
const double  C43,
const double  C44,
const double  S31,
const double  S32,
const double  S33,
const double  S41,
const double  S42,
const double  S43,
const double  S44
 

Definition at line 71 of file orsa_body.cc.

References orsa::GetG(), BodyConstants::list_bc, orsa::NONE, orsa::radius(), and BodyConstants::users.

00071                                                                                                                                                                                                                                                                                                                                                                                                                            : name_(name), mass_(mass), mu_(GetG()*mass_), zero_mass_(mass_ == 0.0), radius_(radius), planet_(NONE), J2_(J2), J3_(J3), J4_(J4), C22_(C22), C31_(C31), C32_(C32), C33_(C33), C41_(C41), C42_(C42), C43_(C43), C44_(C44), S31_(S31), S32_(S32), S33_(S33), S41_(S41), S42_(S42), S43_(S43), S44_(S44), id(used_body_id++) {
00072     users = 1;
00073     list_bc.push_back(this);
00074   }

Here is the call graph for this function:

BodyConstants const std::string &  name,
const double  mass,
const double  radius,
const   JPL_planets,
const double  J2,
const double  J3,
const double  J4,
const double  C22,
const double  C31,
const double  C32,
const double  C33,
const double  C41,
const double  C42,
const double  C43,
const double  C44,
const double  S31,
const double  S32,
const double  S33,
const double  S41,
const double  S42,
const double  S43,
const double  S44
 

Definition at line 76 of file orsa_body.cc.

References orsa::GetG(), BodyConstants::list_bc, orsa::radius(), and BodyConstants::users.

00076                                                                                                                                                                                                                                                                                                                                                                                                                                                 : name_(name), mass_(mass), mu_(GetG()*mass_), zero_mass_(mass_ == 0.0), radius_(radius), planet_(p), J2_(J2), J3_(J3), J4_(J4), C22_(C22), C31_(C31), C32_(C32), C33_(C33), C41_(C41), C42_(C42), C43_(C43), C44_(C44), S31_(S31), S32_(S32), S33_(S33), S41_(S41), S42_(S42), S43_(S43), S44_(S44), id(used_body_id++) {
00077     users = 1;
00078     list_bc.push_back(this);
00079   }

Here is the call graph for this function:

~BodyConstants  ) 
 

Definition at line 81 of file orsa_body.cc.

References BodyConstants::list_bc.

00081                                 { 
00082     list<BodyConstants*>::iterator it = list_bc.begin();
00083     while (it != list_bc.end()) {
00084       if (*it == this) {
00085         list_bc.erase(it);
00086         break;
00087       }
00088       ++it;
00089     }
00090   }


Member Function Documentation

void AddUser  )  [inline]
 

Definition at line 91 of file orsa_body.h.

References BodyConstants::users.

Referenced by Body::Body(), and Body::operator=().

00091 { ++users; }

unsigned int BodyId  )  const [inline]
 

Definition at line 110 of file orsa_body.h.

00110 { return id; }

double C22  )  const [inline]
 

Definition at line 71 of file orsa_body.h.

Referenced by Body::C22().

00071 { return C22_; }

double C31  )  const [inline]
 

Definition at line 72 of file orsa_body.h.

Referenced by Body::C31().

00072 { return C31_; }

double C32  )  const [inline]
 

Definition at line 73 of file orsa_body.h.

Referenced by Body::C32().

00073 { return C32_; }

double C33  )  const [inline]
 

Definition at line 74 of file orsa_body.h.

Referenced by Body::C33().

00074 { return C33_; }

double C41  )  const [inline]
 

Definition at line 75 of file orsa_body.h.

Referenced by Body::C41().

00075 { return C41_; }

double C42  )  const [inline]
 

Definition at line 76 of file orsa_body.h.

Referenced by Body::C42().

00076 { return C42_; }

double C43  )  const [inline]
 

Definition at line 77 of file orsa_body.h.

Referenced by Body::C43().

00077 { return C43_; }

double C44  )  const [inline]
 

Definition at line 78 of file orsa_body.h.

Referenced by Body::C44().

00078 { return C44_; }

bool has_zero_mass  )  const [inline]
 

Definition at line 65 of file orsa_body.h.

Referenced by Body::has_zero_mass().

00065 { return zero_mass_; }

unsigned int Id  )  const [inline]
 

Definition at line 111 of file orsa_body.h.

00111 { return id; }

double J2  )  const [inline]
 

Definition at line 68 of file orsa_body.h.

Referenced by Body::J2().

00068 { return J2_; }

double J3  )  const [inline]
 

Definition at line 69 of file orsa_body.h.

Referenced by Body::J3().

00069 { return J3_; }

double J4  )  const [inline]
 

Definition at line 70 of file orsa_body.h.

Referenced by Body::J4().

00070 { return J4_; }

JPL_planets JPLPlanet  )  const [inline]
 

Definition at line 67 of file orsa_body.h.

Referenced by Body::JPLPlanet().

00067 { return planet_; }

double mass  )  const [inline]
 

Definition at line 63 of file orsa_body.h.

Referenced by Body::mass().

00063 { return mass_; }

double mu  )  const [inline]
 

Definition at line 64 of file orsa_body.h.

Referenced by Body::mu().

00064 { return mu_; }

const std::string& name  )  const [inline]
 

Definition at line 62 of file orsa_body.h.

Referenced by Body::name().

00062 { return name_; } 

double radius  )  const [inline]
 

Definition at line 66 of file orsa_body.h.

Referenced by Body::radius().

00066 { return radius_; }

void RemoveUser  )  [inline]
 

Definition at line 92 of file orsa_body.h.

References BodyConstants::users.

Referenced by Body::operator=(), and Body::~Body().

00092 { --users; }

double S31  )  const [inline]
 

Definition at line 79 of file orsa_body.h.

Referenced by Body::S31().

00079 { return S31_; }

double S32  )  const [inline]
 

Definition at line 80 of file orsa_body.h.

Referenced by Body::S32().

00080 { return S32_; }

double S33  )  const [inline]
 

Definition at line 81 of file orsa_body.h.

Referenced by Body::S33().

00081 { return S33_; }

double S41  )  const [inline]
 

Definition at line 82 of file orsa_body.h.

Referenced by Body::S41().

00082 { return S41_; }

double S42  )  const [inline]
 

Definition at line 83 of file orsa_body.h.

Referenced by Body::S42().

00083 { return S42_; }

double S43  )  const [inline]
 

Definition at line 84 of file orsa_body.h.

Referenced by Body::S43().

00084 { return S43_; }

double S44  )  const [inline]
 

Definition at line 85 of file orsa_body.h.

Referenced by Body::S44().

00085 { return S44_; }

unsigned int Users  )  const [inline]
 

Definition at line 93 of file orsa_body.h.

References BodyConstants::users.

Referenced by Body::operator=(), and Body::~Body().

00093 { return users; }       


Member Data Documentation

list< BodyConstants * > list_bc [static, protected]
 

Definition at line 39 of file orsa_body.cc.

Referenced by BodyConstants::BodyConstants(), and BodyConstants::~BodyConstants().

unsigned int users [protected]
 

Definition at line 88 of file orsa_body.h.

Referenced by BodyConstants::AddUser(), BodyConstants::BodyConstants(), BodyConstants::RemoveUser(), and BodyConstants::Users().


The documentation for this class was generated from the following files:
Generated on Tue Jan 11 15:27:54 2005 for liborsa by  doxygen 1.4.0