#include <coherence/util/SortedBag.hpp>
Inherited by TopNAggregator::PartialResult.
This view is backed by the SortedBag, so any modifications made to it are visible to the underlying bag, and vice-versa.
Public Types | |
| typedef spec::Handle | Handle |
| ViewBag Handle definition. | |
| typedef spec::View | View |
| ViewBag View definition. | |
| typedef spec::Holder | Holder |
| ViewBag Holder definition. | |
Public Member Functions | |
| virtual bool | add (Object::Holder oh) |
| virtual SortedBag::Handle | subBag (Object::View vFrom, Object::View vTo) |
| virtual SortedBag::View | subBag (Object::View vFrom, Object::View vTo) const |
| virtual SortedBag::Handle | headBag (Object::View vTo) |
| virtual SortedBag::View | headBag (Object::View vTo) const |
| virtual SortedBag::Handle | tailBag (Object::View vFrom) |
| virtual SortedBag::View | tailBag (Object::View vFrom) const |
Protected Member Functions | |
| ViewBag (SortedBag::Holder ohBag, Object::View vFrom, Object::View vTo) | |
| Construct a view of the SortedBag, constrained to the range [ohFrom, ohTo). | |
| void | checkRange (Object::View v) const |
| Check that the specified object is within the range of this view. | |
Protected Attributes | |
| FinalHolder< SortedBag > | f_ohBag |
| The "outer this". | |
| FinalView< Object > | f_vFrom |
| The (inclusive) lower bound of this view. | |
| FinalView< Object > | f_vTo |
| The (exclusive) upper bound of this view. | |
| ViewBag | ( | SortedBag::Holder | ohBag, | |
| Object::View | vFrom, | |||
| Object::View | vTo | |||
| ) | [protected] |
Construct a view of the SortedBag, constrained to the range [ohFrom, ohTo).
| ohBag | reference to the "outer this" | |
| vFrom | the "from" element (inclusive), or null | |
| vTo | the "to" element (exclusive), or null |
| void checkRange | ( | Object::View | v | ) | const [protected] |
Check that the specified object is within the range of this view.
| v | the object to check |