#include <coherence/util/LinkedList.hpp>
Inherits Object.
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.
| ||||
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. |
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 |
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 |
coherence::lang::IndexOutOfBoundsException | if the index is out of range |