X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=simgear%2Fscene%2Ftgdb%2FTileCache.hxx;h=f141507db47e9504310edbbb48e3b1c516f6bfe1;hb=7e7ce2f38e87d6244e05730fa4382da088bb25f1;hp=6e137d0ad66f67a3aeb0e9b5a240ab1a86016d28;hpb=367f1813dea1e24d6f7e7eb3ecbcfa87cb98a5d1;p=simgear.git diff --git a/simgear/scene/tgdb/TileCache.hxx b/simgear/scene/tgdb/TileCache.hxx index 6e137d0a..f141507d 100644 --- a/simgear/scene/tgdb/TileCache.hxx +++ b/simgear/scene/tgdb/TileCache.hxx @@ -30,7 +30,7 @@ #include #include -SG_USING_STD(map); +using std::map; namespace simgear { @@ -53,6 +53,8 @@ private: // Free a tile cache entry void entry_free( long cache_index ); + double current_time; + public: tile_map_iterator begin() { return tile_cache.begin(); } tile_map_iterator end() { return tile_cache.end(); } @@ -122,6 +124,9 @@ public: * @return success/failure */ bool insert_tile( simgear::TileEntry* e ); + + void set_current_time(double val) { current_time = val; } + double get_current_time() const { return current_time; } }; }