Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

QLNode Class Reference

The QLNode class is an internal class for the QPtrList template collection. More...

#include </home/clem/local/src/opie/qmake/include/qglist.h>

Collaboration diagram for QLNode:

Collaboration graph
[legend]
List of all members.

Public Member Functions

QPtrCollection::Item getData ()

Private Member Functions

 QLNode (QPtrCollection::Item d)

Private Attributes

QPtrCollection::Item data
QLNodeprev
QLNodenext

Friends

class QGList
class QGListIterator

Detailed Description

The QLNode class is an internal class for the QPtrList template collection.

For internal use only.

QLNode is a doubly-linked list node. It has three pointers: 1 Pointer to the previous node. Pointer to the next node. Pointer to the actual data.

It might sometimes be practical to have direct access to the list nodes in a QPtrList, but it is seldom required.

Be very careful if you want to access the list nodes. The heap can easily get corrupted if you make a mistake.

See also:
QPtrList::currentNode(), QPtrList::removeNode(), QPtrList::takeNode()

Definition at line 45 of file qglist.h.


Constructor & Destructor Documentation

QLNode::QLNode QPtrCollection::Item  d  )  [inline, private]
 

Definition at line 55 of file qglist.h.

References data.


Member Function Documentation

QPtrCollection::Item QLNode::getData  )  [inline]
 

Returns a pointer (void*) to the actual data in the list node.

Definition at line 50 of file qglist.h.

References data.

Referenced by QGListIterator::operator()(), QGListIterator::operator++(), QGListIterator::operator+=(), QGListIterator::operator--(), QGListIterator::operator-=(), QGListIterator::toFirst(), and QGListIterator::toLast().


Friends And Related Function Documentation

friend class QGList [friend]
 

Definition at line 47 of file qglist.h.

friend class QGListIterator [friend]
 

Definition at line 48 of file qglist.h.


Member Data Documentation

QPtrCollection::Item QLNode::data [private]
 

Definition at line 52 of file qglist.h.

Referenced by QGList::at(), QGList::cfirst(), QGList::clast(), QGList::contains(), QGList::containsRef(), QGList::find(), QGList::findRef(), QGListIterator::get(), QGList::get(), QGList::inSort(), QGList::next(), QGList::operator=(), QGList::operator==(), QGList::prev(), QGList::QGList(), QGList::remove(), QGList::removeAt(), QGList::removeRef(), QGList::replaceAt(), QGList::sort(), QGList::take(), QGList::takeAt(), QGList::takeFirst(), QGList::takeLast(), QGList::takeNode(), QGList::toVector(), and QGList::write().

QLNode* QLNode::next [private]
 

Definition at line 54 of file qglist.h.

Referenced by QGList::append(), QGList::clear(), QGList::contains(), QGList::containsRef(), QGList::find(), QGList::findRef(), QGList::insertAt(), QGList::inSort(), QGList::locate(), QGList::next(), QGListIterator::operator()(), QGListIterator::operator++(), QGListIterator::operator+=(), QGList::operator=(), QGList::operator==(), QGList::prepend(), QGList::QGList(), QGList::read(), QGList::relinkNode(), QGList::sort(), QGList::takeNode(), QGList::toVector(), QGList::unlink(), and QGList::write().

QLNode* QLNode::prev [private]
 

Definition at line 53 of file qglist.h.

Referenced by QGList::append(), QGList::insertAt(), QGList::locate(), QGListIterator::operator--(), QGListIterator::operator-=(), QGList::prepend(), QGList::prev(), QGList::read(), QGList::relinkNode(), QGList::takeNode(), and QGList::unlink().


The documentation for this class was generated from the following files:
Generated on Sat Nov 5 17:47:44 2005 for OPIE by  doxygen 1.4.2