Logo Search packages:      
Sourcecode: qt4-x11 version File versions  Download package

void Q3GList::append ( Q3PtrCollection::Item  d  )  [protected]

Inserts item d at the end of the list.

Definition at line 406 of file q3glist.cpp.

References Q3PtrCollection::newItem(), Q3LNode::next, and Q3LNode::prev.

Referenced by insertAt(), operator=(), and Q3GList().

{
    register Q3LNode *n = new Q3LNode( newItem(d) );
    Q_CHECK_PTR( n );
    n->next = 0;
    if ( (n->prev = lastNode) )                 // list is not empty
      lastNode->next = n;
    else                            // initialize list
      firstNode = n;
    lastNode = curNode = n;               // curNode affected
    curIndex = numNodes;
    numNodes++;
}


Generated by  Doxygen 1.6.0   Back to index