refactor: extract setpSeg typedef to own header

This commit is contained in:
Christopher Mosher
2013-12-15 00:23:25 -05:00
parent da174b54cd
commit 84715444c9
10 changed files with 43 additions and 14 deletions
+9
View File
@@ -6,6 +6,7 @@
*/
#include "SegmentCache.h"
#include "trans.h"
#include <memory>
#include <string>
#include <map>
@@ -42,3 +43,11 @@ Segment* SegmentCache::get(const std::string& id) const {
return this->cache.at(id).get();
}
setpSeg SegmentCache::all() const {
setpSeg s;
for (auto i : this->cache) {
s.insert(i.second.get());
}
return s;
}