enable contruction of a memory_featureset from a std::vector<feature_ptr>

This commit is contained in:
Dane Springmeyer 2011-10-11 17:29:42 -07:00
parent e660781694
commit 3c14ada217

View file

@ -37,6 +37,13 @@ public:
pos_(ds.features_.begin()), pos_(ds.features_.begin()),
end_(ds.features_.end()) end_(ds.features_.end())
{} {}
memory_featureset(box2d<double> const& bbox, std::vector<feature_ptr> const& features)
: bbox_(bbox),
pos_(features.begin()),
end_(features.end())
{}
virtual ~memory_featureset() {} virtual ~memory_featureset() {}
feature_ptr next() feature_ptr next()