src/polygoncache.h

changeset 211
b27b90fb993f
parent 210
232e7634cc8a
child 264
76a025db4948
equal deleted inserted replaced
210:232e7634cc8a 211:b27b90fb993f
15 class DocumentManager* documents; 15 class DocumentManager* documents;
16 }; 16 };
17 17
18 struct PolygonCache 18 struct PolygonCache
19 { 19 {
20 std::vector<WithId<PolygonElement>> cachedPolygons; 20 using vector_type = std::vector<WithId<PolygonElement>>;
21 vector_type cachedPolygons;
21 bool needRecache = true; 22 bool needRecache = true;
22 }; 23 };
23 24
24 const std::vector<WithId<PolygonElement>>& getCachedPolygons( 25 const PolygonCache::vector_type* getCachedPolygons(
25 PolygonCache* cache, 26 PolygonCache* cache,
26 Model* model, 27 Model* model,
27 class DocumentManager* documents); 28 class DocumentManager* documents);
29 PolygonCache* findPolygonCacheForModel(Model* model, DocumentManager* context);

mercurial