Oracle Coherence for C++ API


LinkedList::ListElement Class Reference

#include <coherence/util/LinkedList.hpp>

Inherits Object.

List of all members.

Detailed Description

ListElement is the foundation element for the linked list.

Public Types

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

Static Public Member Functions

template<class T>
static TypedHandle< T > nextElement (const TypedHandle< T > &thElement, size32_t c)
 Helper method to find a ListElement at the specified position.

Public Attributes

< ListElement
 Reference to the next element in the list.
< ListElement
 Reference to the previous element in the list.
MemberHolder< Objectvalue
 Reference to the actual object contained by this list.

Protected Member Functions

 ListElement (ListElement::Handle hNext, ListElement::Handle hPrev, Object::Holder hObj)
 Create a new ListElement object.

Constructor & Destructor Documentation

ListElement ( ListElement::Handle  hNext,
    ListElement::Handle  hPrev,
    Object::Holder  hObj 
  )    [protected]

Create a new ListElement object.

 hNext the element that will be next in the list
 hPrev the element that will be previous in the list
 hObj the object this list element contains
a newly created ListElement

Member Function Documentation

static TypedHandle<T> nextElement ( const TypedHandle< T > &  thElement,
    size32_t  c 
  )    [inline, static]

Helper method to find a ListElement at the specified position.

 thElement the starting position to find the element from
 c the index of the element to find
a ListElement at the specified position
 coherence::lang::IndexOutOfBoundsException if the index is out of range

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