Fennel: IntrusiveListMutator< T, DerivedListNode > Class Template Reference (original) (raw)

IntrusiveListMutator is the companion mutator for InstrusiveList. More...

#include <[IntrusiveList.h](IntrusiveList%5F8h-source.html)>

Inheritance diagram for IntrusiveListMutator< T, DerivedListNode >:

List of all members.

Public Member Functions
IntrusiveListMutator ()
Constructs a singular mutator.
IntrusiveListMutator (IntrusiveList< T, DerivedListNode > &list)
Constructs a mutator positioned at the front of a given list.
T * operator-> () const
**Returns:**pointer to current element
operator T * () const
**Returns:**reference to current element
T & operator * () const
**Returns:**reference to current element
T * detach ()
Removes current element from list.
void repositionToFront (IntrusiveList< T, DerivedListNode > &list)
Repositions this mutator to the front of a given list.
void repositionToFront ()
Repositions this mutator to the front of the current list.
void operator++ ()
Advances iterator position to next node.
void promoteCurrToFront ()
Moves the current node to the front of the list.
void demoteCurrToBack ()
Moves the current node to the back of the list.
void demoteFrontBeforeCurr ()
Moves the front node of the list to just before the current node.
Protected Member Functions
IntrusiveListNode * getCurrent () const
void repositionToFront (RawIntrusiveList &l)
Protected Attributes
IntrusiveListNode * pCurr
IntrusiveListNode * pPrev
RawIntrusiveList * pList
bool bJustDeleted
Private Types
typedef RawIntrusiveListMutator super

Detailed Description

template<class T, class DerivedListNode = IntrusiveListNode>

class IntrusiveListMutator< T, DerivedListNode >

IntrusiveListMutator is the companion mutator for InstrusiveList.

It allows the list to be modified during the course of iteration.

Definition at line 181 of file IntrusiveList.h.


Member Typedef Documentation

template<class T, class DerivedListNode = IntrusiveListNode>


Constructor & Destructor Documentation

Constructs a mutator positioned at the front of a given list.

Parameters:

Definition at line 199 of file IntrusiveList.h.

00201 : super(list) 00202 { 00203 }


Member Function Documentation

template<class T, class DerivedListNode = IntrusiveListNode>

| T* IntrusiveListMutator< T, DerivedListNode >::operator-> | ( | | ) | const [inline] | | -------------------------------------------------------------------------------------------- | - | | - | ---------------- |

template<class T, class DerivedListNode = IntrusiveListNode>

| IntrusiveListMutator< T, DerivedListNode >::operator T * | ( | | ) | const [inline] | | ------------------------------------------------------------------------------------------- | - | | - | ---------------- |

template<class T, class DerivedListNode = IntrusiveListNode>

| T& IntrusiveListMutator< T, DerivedListNode >::operator * | ( | | ) | const [inline] | | -------------------------------------------------------------------------------------------- | - | | - | ---------------- |

template<class T, class DerivedListNode = IntrusiveListNode>

| T* IntrusiveListMutator< T, DerivedListNode >::detach | ( | | ) | [inline] | | ---------------------------------------------------------------------------------------- | - | | - | ---------- |

template<class T, class DerivedListNode = IntrusiveListNode>

void IntrusiveListMutator< T, DerivedListNode >::repositionToFront ( IntrusiveList< T, DerivedListNode > & list ) [inline]

template<class T, class DerivedListNode = IntrusiveListNode>

| void IntrusiveListMutator< T, DerivedListNode >::repositionToFront | ( | | ) | [inline] | | ---------------------------------------------------------------------------------------------------- | - | | - | ---------- |

| IntrusiveListNode* RawIntrusiveListMutator::getCurrent | ( | | ) | const [inline, protected, inherited] | | --------------------------------------------------------------------------------------- | - | | - | -------------------------------------- |

void RawIntrusiveListMutator::repositionToFront ( RawIntrusiveList & l ) [inline, protected, inherited]

| void RawIntrusiveListMutator::operator++ | ( | | ) | [inline, inherited] | | ---------------------------------------- | - | | - | --------------------- |

| void RawIntrusiveListMutator::promoteCurrToFront | ( | | ) | [inherited] | | ------------------------------------------------ | - | | - | ------------- |

| void RawIntrusiveListMutator::demoteCurrToBack | ( | | ) | [inherited] | | ---------------------------------------------- | - | | - | ------------- |

| void RawIntrusiveListMutator::demoteFrontBeforeCurr | ( | | ) | [inherited] | | --------------------------------------------------- | - | | - | ------------- |


Member Data Documentation


The documentation for this class was generated from the following file:


Generated on Mon Jun 22 04:00:33 2009 for Fennel by doxygen 1.5.1