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 ()


Detailed Description

Definition at line 157 of file orsa_file_jpl.h.


Constructor & Destructor Documentation

JPLCache (  ) 

Definition at line 531 of file orsa_file_jpl.cc.

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

~JPLCache (  ) 

Definition at line 535 of file orsa_file_jpl.cc.

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


Member Function Documentation

void Clear (  ) 

Definition at line 553 of file orsa_file_jpl.cc.

00553                        {
00554     big_map.clear();
00555   }

const JPLBody & GetJPLBody ( const JPL_planets  p,
const UniverseTypeAwareTime t 
)

Definition at line 539 of file orsa_file_jpl.cc.

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

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


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

Generated on Sat Aug 15 19:04:43 2009 for liborsa by  doxygen 1.5.9