Some documentation, C++11 conversion, code beautification,

added some helper methods.
This commit is contained in:
bubnikv 2018-07-25 16:11:31 +02:00
parent 077680b806
commit 440e58573e
14 changed files with 109 additions and 82 deletions

View file

@ -37,6 +37,11 @@ public:
void clear() { surfaces.clear(); }
bool empty() const { return surfaces.empty(); }
bool has(SurfaceType type) const {
for (const Surface &surface : this->surfaces)
if (surface.surface_type == type) return true;
return false;
}
void set(const SurfaceCollection &coll) { surfaces = coll.surfaces; }
void set(SurfaceCollection &&coll) { surfaces = std::move(coll.surfaces); }