Oracle® Fusion Middleware C++ API Reference for Oracle Coherence
12c (12.2.1.1.0)

E69640-01

SortedBag Class Reference

#include <coherence/util/SortedBag.hpp>

Inherited by TopNAggregator::PartialResult.

List of all members.


Detailed Description

A range-limited view of the SortedBag.

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< SortedBagf_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.


Member Function Documentation

ViewBag ( SortedBag::Holder  ohBag,
Object::View  vFrom,
Object::View  vTo 
) [protected]

Construct a view of the SortedBag, constrained to the range [ohFrom, ohTo).

Parameters:
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.

Parameters:
v the object to check


The documentation for this class was generated from the following file:
Copyright © 2000, 2016, Oracle and/or its affiliates. All rights reserved.