Oracle Coherence for C++ API
Release 3.7.1.0

E22845-01

CircularArrayList::SubCircularArrayList Class Reference

#include <coherence/util/CircularArrayList.hpp>

Inherits SubList.

List of all members.


Detailed Description

Utility class to implement a SubList of a CircularArrayList.

SubCircularArrayList delegates through the the CircularArrayList for all modification operations
 

Public Types

typedef spec::Handle Handle
 SubCircularArrayList Handle definition.
typedef spec::View View
 SubCircularArrayList View definition.
typedef spec::Holder Holder
 SubCircularArrayList Holder definition.

Public Member Functions

virtual bool retainAll (Collection::View vColl)
 Remove all elements from this collection that are not present in the supplied collection.

Parameters:
 vCol the collection of elements to retain
Returns:
true iff this collection was modified as a result of this operation.
Exceptions:
 coherence::lang::NullPointerException if the specified collection is NULL
See also:
remove()

contains()

This implementation will throw a coherence::lang::UnsupportedOperationException unless remove() is overridden (assuming there are items to be removed by the operation).

virtual void clear ()
 Remove all elements from this collection.

This implementation will throw a coherence::lang::UnsupportedOperationException.

virtual List::View subList (size32_t fromIndex, size32_t toIndex) const
 Return a new list containing the contents of the list between the specified fromIndex (inclusive) and toIndex (exclusive).

Parameters:
 iFrom the start position in this list to create the sublist from (inclusive).
 iTo the end position in this list to end the sublist at (exclusive).
Returns:
the new sublist of this list
virtual List::Handle subList (size32_t fromIndex, size32_t toIndex)
 Return a new list containing the contents of the list between the specified fromIndex (inclusive) and toIndex (exclusive).

Parameters:
 iFrom the start position in this list to create the sublist from (inclusive).
 iTo the end position in this list to end the sublist at (exclusive).
Returns:
the new sublist of this list

Protected Member Functions

 SubCircularArrayList (size32_t fromIndex, size32_t toIndex, List::Holder ohList)
 create a new SubCircularArrayList.


Constructor & Destructor Documentation

SubCircularArrayList ( size32_t  fromIndex,
    size32_t  toIndex,
    List::Holder  ohList 
  )    [protected]

create a new SubCircularArrayList.

Parameters:
 fromIndex the starting point of the sublist in the list provided (inclusive).
 toIndex the end point of the sublist in the list provided (exclusive)
 ohList the list to create a sublist of
Returns:
a new SubCircularArrayList


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