Oracle Coherence for C++ API
Release 3.7.1.0

E22845-01

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

MemberHandle
< ListElement
next
  Reference to the next element in the list.
MemberHandle
< ListElement
previous
  Reference to the previous element in the list.
MemberHolder< Object value
  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.

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

Parameters:
  thElement  the starting position to find the element from
  c  the index of the element to find
Returns:
a ListElement at the specified position
Exceptions:
  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.