X-Git-Url: http://git.tdb.fi/?p=libs%2Fgltk.git;a=blobdiff_plain;f=source%2Fpartcache.h;h=4eef1166d1d9e75f0bc39bd27b087350e8cbf3c1;hp=969912431271d501b68267f9f09bb7b05f0427b6;hb=01d30637b393b2f8a932b1d943076db580b1e951;hpb=8bc33895d1bb04adcefee405746ef3c21d99a66d diff --git a/source/partcache.h b/source/partcache.h index 9699124..4eef116 100644 --- a/source/partcache.h +++ b/source/partcache.h @@ -22,6 +22,16 @@ struct CachedPart class PartCache { public: + class Rebuild + { + private: + PartCache &cache; + + public: + Rebuild(PartCache &c): cache(c) { cache.begin_rebuild(); } + ~Rebuild() { cache.end_rebuild(); } + }; + typedef std::list PartList; private: