+template<typename T, unsigned D, typename O>
+inline Coverage CompositeShape<T, D, O>::get_coverage(const BoundingBox<T, D> &bbox) const
+{
+ Coverage coverage = NO_COVERAGE;
+ for(typename ShapeArray::const_iterator i=shapes.begin(); i!=shapes.end(); ++i)
+ {
+ Coverage c = (*i)->get_coverage(bbox);
+ if(i==shapes.begin() || Ops::shortcircuit(c>coverage))
+ coverage = c;
+
+ if(coverage!=PARTIAL_COVERAGE && Ops::shortcircuit(coverage==FULL_COVERAGE))
+ break;
+ }
+
+ return coverage;
+}
+