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

QPtrList< type > Class Template Reference

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

Inheritance diagram for QPtrList< type >:

Inheritance graph
[legend]
Collaboration diagram for QPtrList< type >:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 QPtrList ()
 QPtrList (const QPtrList< type > &l)
 ~QPtrList ()
QPtrList< type > & operator= (const QPtrList< type > &l)
bool operator== (const QPtrList< type > &list) const
bool operator!= (const QPtrList< type > &list) const
uint count () const
bool isEmpty () const
bool insert (uint i, const type *d)
void inSort (const type *d)
void prepend (const type *d)
void append (const type *d)
bool remove (uint i)
bool remove ()
bool remove (const type *d)
bool removeRef (const type *d)
void removeNode (QLNode *n)
bool removeFirst ()
bool removeLast ()
typetake (uint i)
typetake ()
typetakeNode (QLNode *n)
void clear ()
void sort ()
int find (const type *d)
int findNext (const type *d)
int findRef (const type *d)
int findNextRef (const type *d)
uint contains (const type *d) const
uint containsRef (const type *d) const
bool replace (uint i, const type *d)
typeat (uint i)
int at () const
typecurrent () const
QLNodecurrentNode () const
typegetFirst () const
typegetLast () const
typefirst ()
typelast ()
typenext ()
typeprev ()
void toVector (QGVector *vec) const
template<>
void deleteItem (QPtrCollection::Item)

Private Member Functions

void deleteItem (Item d)

template<class type>
class QPtrList< type >


Constructor & Destructor Documentation

template<class type>
QPtrList< type >::QPtrList  )  [inline]
 

Definition at line 53 of file qptrlist.h.

template<class type>
QPtrList< type >::QPtrList const QPtrList< type > &  l  )  [inline]
 

Definition at line 54 of file qptrlist.h.

template<class type>
QPtrList< type >::~QPtrList  )  [inline]
 

Definition at line 55 of file qptrlist.h.


Member Function Documentation

template<class type>
void QPtrList< type >::append const type d  )  [inline]
 

Definition at line 67 of file qptrlist.h.

Referenced by Qt3::QTextTable::addCell(), KALedMeter::addColorRange(), Qt3::QTextCommandHistory::addCommand(), KAsteroidsView::addExhaust(), OJanusWidget::addPageWidget(), KAsteroidsView::addRocks(), ProcessManager::append(), QDir::encodedEntryList(), AppLauncher::execute(), Referee::fillMapName(), Win32MakefileGenerator::findLibraries(), UnixMakefileGenerator::findLibraries(), ProjectGenerator::init(), MakefileGenerator::init(), Opie::Core::Internal::Ramses::init(), Ramses::init(), LibraryDialog::initDialog(), Global::invoke(), LanguageSettings::LanguageSettings(), QGPluginManager::library(), QuickLauncher::message(), Qt3::QTextDocument::parseTable(), Win32MakefileGenerator::processPrlFiles(), UnixMakefileGenerator::processPrlFiles(), MetrowerksMakefileGenerator::processPrlFiles(), KAsteroidsView::processShip(), QGDictIterator::QGDictIterator(), QDir::readDirEntries(), Qt3::QTextFlow::registerFloatingItem(), KAsteroidsView::rockHit(), QString::section(), Win32MakefileGenerator::writeSubDirs(), VcprojGenerator::writeSubDirs(), and UnixMakefileGenerator::writeSubdirs().

template<class type>
int QPtrList< type >::at  )  const [inline]
 

Returns the current index.

Reimplemented from QGList.

Definition at line 89 of file qptrlist.h.

template<class type>
type* QPtrList< type >::at uint  i  )  [inline]
 

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

Sets the item at position index to the current item.

Reimplemented from QGList.

Definition at line 88 of file qptrlist.h.

Referenced by Qt3::QTextCommandHistory::addCommand(), Painter::confScheme(), Referee::demo(), QuickLauncher::doQuickLaunch(), Qt3::QTextTable::down(), KALedMeter::drawContents(), Qt3::QTextTable::enterAt(), AppLauncher::execute(), Referee::fillMapName(), Status::fillPixmapName(), Painter::fillPixmapName(), Qt3::QTextDocument::focusNextPrevChild(), Qt3::QTextTable::format(), Status::initPixmaps(), Painter::initPixmaps(), Global::invoke(), Referee::levelUpPlay(), Qt3::QTextTable::next(), DocumentListPrivate::nextFile(), Referee::play(), Qt3::QTextTable::prev(), Qt3::QTextCommandHistory::redo(), Opie::ODevice::setCurrentCpuFrequency(), Opie::Core::ODevice::setCurrentCpuFrequency(), OJanusWidget::showPage(), Qt3::QTextCommandHistory::undo(), and Qt3::QTextTable::up().

template<class type>
void QPtrList< type >::clear  )  [inline, virtual]
 

Removes all items from the list.

Reimplemented from QGList.

Definition at line 78 of file qptrlist.h.

Referenced by Qt3::QTextCommandHistory::addCommand(), Qt3::QTextFlow::clear(), Referee::fillMapName(), QDir::readDirEntries(), KAsteroidsView::reset(), and QPtrList< QCacheItem >::~QPtrList().

template<class type>
uint QPtrList< type >::contains const type d  )  const [inline]
 

Definition at line 84 of file qptrlist.h.

Referenced by Qt3::QTextFlow::registerFloatingItem().

template<class type>
uint QPtrList< type >::containsRef const type d  )  const [inline]
 

Definition at line 85 of file qptrlist.h.

Referenced by OJanusWidget::removePage().

template<class type>
uint QPtrList< type >::count  )  const [inline, virtual]
 

Returns the number of items in the list.

Reimplemented from QGList.

Definition at line 62 of file qptrlist.h.

Referenced by Qt3::QTextCommandHistory::addCommand(), ProcessManager::append(), QGDict::clear(), QuickLauncher::doQuickLaunch(), Qt3::QTextTable::down(), KALedMeter::drawContents(), TEWidget::dropEvent(), Qt3::QTextTable::enter(), Qt3::QTextTable::enterAt(), DocumentListPrivate::estimatedPercentScanned(), AppLauncher::execute(), Referee::fillMapName(), Status::fillPixmapName(), Painter::fillPixmapName(), Qt3::QTextTable::format(), Global::invoke(), Qt3::QTextCommandHistory::isRedoAvailable(), LightSettings::LightSettings(), Qt3::QTextTable::next(), DocumentListPrivate::nextFile(), Qt3::QTextTable::prev(), KAsteroidsView::processShip(), QDir::readDirEntries(), Qt3::QTextCommandHistory::redo(), ProcessManager::remove(), QGDict::resize(), KAsteroidsView::rockHit(), QString::section(), Opie::ODevice::setCurrentCpuFrequency(), Opie::Core::ODevice::setCurrentCpuFrequency(), and QGDict::unlink_common().

template<class type>
type* QPtrList< type >::current  )  const [inline]
 

Definition at line 90 of file qptrlist.h.

Referenced by VcprojGenerator::writeSubDirs().

template<class type>
QLNode* QPtrList< type >::currentNode  )  const [inline]
 

Returns the current node.

Reimplemented from QGList.

Definition at line 91 of file qptrlist.h.

template<>
void QPtrList< void >::deleteItem QPtrCollection::Item   )  [inline]
 

Definition at line 112 of file qptrlist.h.

template<class type>
void QPtrList< type >::deleteItem Item  d  )  [inline, private]
 

Definition at line 117 of file qptrlist.h.

References QPtrCollection::del_item, and type.

template<class type>
int QPtrList< type >::find const type d  )  [inline]
 

Definition at line 80 of file qptrlist.h.

Referenced by QGPluginManager::library(), and LanguageSettings::reset().

template<class type>
int QPtrList< type >::findNext const type d  )  [inline]
 

Definition at line 81 of file qptrlist.h.

template<class type>
int QPtrList< type >::findNextRef const type d  )  [inline]
 

Definition at line 83 of file qptrlist.h.

template<class type>
int QPtrList< type >::findRef const type d  )  [inline]
 

Definition at line 82 of file qptrlist.h.

Referenced by OJanusWidget::activePageIndex(), OJanusWidget::pageIndex(), OJanusWidget::removePage(), and OJanusWidget::showPage().

template<class type>
type* QPtrList< type >::first  )  [inline]
 

Returns the first list item. Sets this to current.

Reimplemented from QGList.

Reimplemented in QCList.

Definition at line 94 of file qptrlist.h.

Referenced by Qt3::QTextFlow::adjustLMargin(), Qt3::QTextFlow::adjustRMargin(), Qt3::QTextTable::adjustToPainter(), Qt3::QTextFormatter::bidiReorderLine(), KALedMeter::calcColorRanges(), QGDict::clear(), ProcessPrivate::closeOpenSocketsForChild(), Qt3::QTextTable::down(), Qt3::QTextTable::draw(), Qt3::QTextFlow::drawFloatingItems(), TEWidget::dropEvent(), Win32MakefileGenerator::findLibraries(), UnixMakefileGenerator::findLibraries(), QCList::first(), Qt3::QTextDocument::focusNextPrevChild(), Qt3::QTextParagraph::format(), MakefileGenerator::generateDependencies(), Qt3::QTextParagraph::invalidate(), QGPluginManager::library(), Qt3::QTextTable::next(), Qt3::QTextDocument::plainText(), Server::pokeTimeMonitors(), Qt3::QTextTable::prev(), Win32MakefileGenerator::processPrlFiles(), UnixMakefileGenerator::processPrlFiles(), MetrowerksMakefileGenerator::processPrlFiles(), QDir::readDirEntries(), QGDict::resize(), QString::section(), Qt3::QTextDocument::selectAll(), Qt3::QTextDocument::selectedText(), Qt3::QTextDocument::setDefaultFormat(), Qt3::QTextDocument::setUnderlineLinks(), KAsteroidsView::timerEvent(), QGDict::unlink_common(), Qt3::QTextTable::up(), VcprojGenerator::writeSubDirs(), and QGDict::~QGDict().

template<class type>
type* QPtrList< type >::getFirst  )  const [inline]
 

Definition at line 92 of file qptrlist.h.

template<class type>
type* QPtrList< type >::getLast  )  const [inline]
 

Definition at line 93 of file qptrlist.h.

template<class type>
bool QPtrList< type >::insert uint  i,
const type d
[inline]
 

Definition at line 64 of file qptrlist.h.

Referenced by Qt3::QTextCommandHistory::addCommand(), and QCList::insert().

template<class type>
void QPtrList< type >::inSort const type d  )  [inline]
 

Definition at line 65 of file qptrlist.h.

template<class type>
bool QPtrList< type >::isEmpty  )  const [inline]
 

Definition at line 63 of file qptrlist.h.

Referenced by KALedMeter::drawContents(), Referee::fillMapName(), Qt3::QTextFlow::isEmpty(), KAsteroidsView::processPowerups(), and Win32MakefileGenerator::writeSubDirs().

template<class type>
type* QPtrList< type >::last  )  [inline]
 

Returns the last list item. Sets this to current.

Reimplemented from QGList.

Reimplemented in QCList.

Definition at line 95 of file qptrlist.h.

Referenced by Qt3::QTextDocument::focusNextPrevChild(), and QCList::last().

template<class type>
type* QPtrList< type >::next  )  [inline]
 

Returns the next list item (after current). Sets this to current.

Reimplemented from QGList.

Reimplemented in QCList.

Definition at line 96 of file qptrlist.h.

Referenced by Qt3::QTextFlow::adjustLMargin(), Qt3::QTextFlow::adjustRMargin(), Qt3::QTextTable::adjustToPainter(), Qt3::QTextFormatter::bidiReorderLine(), KALedMeter::calcColorRanges(), QGDict::clear(), ProcessPrivate::closeOpenSocketsForChild(), Qt3::QTextTable::draw(), Qt3::QTextFlow::drawFloatingItems(), TEWidget::dropEvent(), Win32MakefileGenerator::findLibraries(), UnixMakefileGenerator::findLibraries(), Qt3::QTextDocument::focusNextPrevChild(), Qt3::QTextParagraph::format(), MakefileGenerator::generateDependencies(), Qt3::QTextParagraph::invalidate(), QGPluginManager::library(), QCList::next(), Qt3::QTextDocument::plainText(), Server::pokeTimeMonitors(), Win32MakefileGenerator::processPrlFiles(), UnixMakefileGenerator::processPrlFiles(), MetrowerksMakefileGenerator::processPrlFiles(), QDir::readDirEntries(), QGDict::resize(), QString::section(), Qt3::QTextDocument::selectAll(), Qt3::QTextDocument::selectedText(), Qt3::QTextDocument::setDefaultFormat(), Qt3::QTextDocument::setUnderlineLinks(), KAsteroidsView::timerEvent(), QGDict::unlink_common(), VcprojGenerator::writeSubDirs(), and QGDict::~QGDict().

template<class type>
bool QPtrList< type >::operator!= const QPtrList< type > &  list  )  const [inline]
 

Definition at line 60 of file qptrlist.h.

template<class type>
QPtrList<type>& QPtrList< type >::operator= const QPtrList< type > &  l  )  [inline]
 

Definition at line 56 of file qptrlist.h.

Referenced by QGDItList::operator=(), and QStrList::operator=().

template<class type>
bool QPtrList< type >::operator== const QPtrList< type > &  list  )  const [inline]
 

Definition at line 58 of file qptrlist.h.

template<class type>
void QPtrList< type >::prepend const type d  )  [inline]
 

Definition at line 66 of file qptrlist.h.

Referenced by Konsole::init().

template<class type>
type* QPtrList< type >::prev  )  [inline]
 

Returns the previous list item (before current). Sets this to current.

Reimplemented from QGList.

Reimplemented in QCList.

Definition at line 97 of file qptrlist.h.

Referenced by Qt3::QTextDocument::focusNextPrevChild(), and QCList::prev().

template<class type>
bool QPtrList< type >::remove const type d  )  [inline]
 

Definition at line 70 of file qptrlist.h.

template<class type>
bool QPtrList< type >::remove  )  [inline]
 

Definition at line 69 of file qptrlist.h.

template<class type>
bool QPtrList< type >::remove uint  i  )  [inline]
 

Definition at line 68 of file qptrlist.h.

Referenced by ProcessManager::remove().

template<class type>
bool QPtrList< type >::removeFirst  )  [inline]
 

Removes the first item in the list.

Reimplemented from QGList.

Reimplemented in QCList.

Definition at line 73 of file qptrlist.h.

Referenced by Qt3::QTextCommandHistory::addCommand(), and QCList::removeFirst().

template<class type>
bool QPtrList< type >::removeLast  )  [inline]
 

Removes the last item in the list.

Reimplemented from QGList.

Reimplemented in QCList.

Definition at line 74 of file qptrlist.h.

Referenced by QCList::removeLast().

template<class type>
void QPtrList< type >::removeNode QLNode n  )  [inline]
 

Removes the node n from the list.

Reimplemented from QGList.

Definition at line 72 of file qptrlist.h.

template<class type>
bool QPtrList< type >::removeRef const type d  )  [inline]
 

Definition at line 71 of file qptrlist.h.

Referenced by QGDictIterator::operator=(), KAsteroidsView::processMissiles(), KAsteroidsView::processPowerups(), OJanusWidget::removePage(), KAsteroidsView::rockHit(), KAsteroidsView::timerEvent(), Qt3::QTextFlow::unregisterFloatingItem(), and QGDictIterator::~QGDictIterator().

template<class type>
bool QPtrList< type >::replace uint  i,
const type d
[inline]
 

Definition at line 87 of file qptrlist.h.

template<class type>
void QPtrList< type >::sort  )  [inline]
 

Sorts the list by the result of the virtual compareItems() function.

The Heap-Sort algorithm is used for sorting. It sorts n items with O(n*log n) compares. This is the asymptotic optimal solution of the sorting problem.

Reimplemented from QGList.

Definition at line 79 of file qptrlist.h.

template<class type>
type* QPtrList< type >::take  )  [inline]
 

Takes the current item out of the list.

Reimplemented from QGList.

Definition at line 76 of file qptrlist.h.

template<class type>
type* QPtrList< type >::take uint  i  )  [inline]
 

Definition at line 75 of file qptrlist.h.

Referenced by Qt3::QTextCommandHistory::addCommand(), and QGPluginManager::library().

template<class type>
type* QPtrList< type >::takeNode QLNode n  )  [inline]
 

Takes the node n out of the list.

Reimplemented from QGList.

Definition at line 77 of file qptrlist.h.

template<class type>
void QPtrList< type >::toVector QGVector vec  )  const [inline]
 

Converts the list to a vector, vector.

Reimplemented from QGList.

Definition at line 98 of file qptrlist.h.


The documentation for this class was generated from the following file:
Generated on Sat Nov 5 17:48:19 2005 for OPIE by  doxygen 1.4.2