Logo Search packages:      
Sourcecode: scummvm version File versions

void Common::List< T >::insert ( NodeBase pos,
const T &  element 
) [inline, protected, inherited]

Inserts element before pos.

Definition at line 248 of file list.h.

                                                     {
            ListInternal::NodeBase *newNode = new Node(element);
            assert(newNode);

            newNode->_next = pos;
            newNode->_prev = pos->_prev;
            newNode->_prev->_next = newNode;
            newNode->_next->_prev = newNode;
      }

Generated by  Doxygen 1.6.0   Back to index