#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 | ( | ) |
const JPLBody & GetJPLBody | ( | const | JPL_planets, | |
const UniverseTypeAwareTime & | t | |||
) |
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 }
void Clear | ( | ) |