JPLCache Class Reference

#include <orsa_file_jpl.h>

List of all members.

Public Member Functions

 JPLCache ()
 ~JPLCache ()
const JPLBodyGetJPLBody (const JPL_planets, const UniverseTypeAwareTime &)
void Clear ()


Constructor & Destructor Documentation

JPLCache  ) 
 

Definition at line 530 of file orsa_file_jpl.cc.

00530                      {
00531     // jf = new JPLFile(config->paths[JPL_EPHEM_FILE]->GetValue().c_str());
00532   }

~JPLCache  ) 
 

Definition at line 534 of file orsa_file_jpl.cc.

00534                       {
00535     // if (jf) delete jf;
00536   }


Member Function Documentation

void Clear  ) 
 

Definition at line 552 of file orsa_file_jpl.cc.

00552                        {
00553     big_map.clear();
00554   }

const JPLBody & GetJPLBody const   JPL_planets,
const UniverseTypeAwareTime
 

Definition at line 538 of file orsa_file_jpl.cc.

Referenced by orsa::Compute_Gauss(), and orsa::SetupSolarSystem().

00538                                                                                            {
00539     data_map_type & data = big_map[p];
00540     data_map_type::const_iterator it = data.find(t);
00541     if (it != data.end()) {
00542       // ORSA_ERROR("JPLCache::GetJPLBody(...) ==> Found something in cache...");
00543       return ((*it).second);
00544     } else {
00545       // ORSA_ERROR("JPLCache::GetJPLBody(...) ==> Adding object to cache...");
00546       // data[t] = JPLBody(p,t);
00547       // return data[t];
00548       return (data[t] = JPLBody(p,t));
00549     }
00550   }


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