#include <orsa_file_jpl.h>
Public Member Functions | |
JPLCache () | |
~JPLCache () | |
const JPLBody & | GetJPLBody (const JPL_planets, const UniverseTypeAwareTime &) |
void | Clear () |
Definition at line 157 of file orsa_file_jpl.h.
JPLCache | ( | ) |
~JPLCache | ( | ) |
void Clear | ( | ) |
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 }