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


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.

Public Member Functions

virtual size64_t sizeOf (bool fDeep=false) const
 Return an estimate as to the byte size of the object.

The shallow size should not include the cost of referenced managed objects, or non-fixed dynamically allocated memory. That for a given object it is assumed that a call to this method will always return the same value when the shallow size is requested.

The deep size should be the shallow size plus the size of any referenced objects. Unlike the shallow size the deep size may change over time. The default implementation provided by Object will traverse the object graph of all managed objects which it references and include their sizes in the computed deep size. In general it is sufficient to simply delegate to super::sizeOf(true) for deep calculations.

For classes implemented via class_spec, a variant of this method will be automatically produced which will utilize sizeof(*this) to compute the shallow size, and super::sizeOf(true) to compute the deep size. As such it is generally not necessary to provide custom implmenetations of this method.

fDeep true if the size should include the size of referenced objects
the approximate shallow byte size of the object

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, 2014, Oracle and/or its affiliates. All rights reserved.