![]() |
KVIrc 5.2.6
Developer APIs
|
A fast pointer hash table iterator implementation. More...
#include <KviPointerHashTable.h>
Public Member Functions | |
T * | current () const |
Returns the value pointed by the iterator. | |
const Key & | currentKey () const |
Returns the key pointed by the iterator. | |
KviPointerHashTableIterator (const KviPointerHashTable< Key, T > &hTable) | |
Creates an iterator pointing to the first item in the hash table, if any. | |
bool | moveFirst () |
Moves the iterator to the first element of the hash table. | |
bool | moveLast () |
Moves the iterator to the last element of the hash table. | |
bool | moveNext () |
Moves the iterator to the next element of the hash table. | |
bool | movePrev () |
Moves the iterator to the previous element of the hash table. | |
T * | operator* () const |
Returns the value pointed by the iterator. | |
bool | operator++ () |
Moves the iterator to the next element of the hash table. | |
bool | operator-- () |
Moves the iterator to the previous element of the hash table. | |
void | operator= (const KviPointerHashTableIterator< Key, T > &src) |
Creates an iterator copy. | |
T * | toFirst () |
Moves the iterator to the first element of the hash table. | |
~KviPointerHashTableIterator () | |
Destroys the iterator. | |
Protected Attributes | |
const KviPointerHashTable< Key, T > * | m_pHashTable |
KviPointerListIterator< KviPointerHashTableEntry< Key, T > > * | m_pIterator |
unsigned int | m_uEntryIndex |
A fast pointer hash table iterator implementation.
|
inline |
Creates an iterator pointing to the first item in the hash table, if any.
hTable | The hash table |
|
inline |
Destroys the iterator.
|
inline |
Returns the value pointed by the iterator.
If the iterator is not valid it returns a default constructed value This is an alias to operator *() with just a different name.
Referenced by action_kvs_cmd_list(), ActionEditor::ActionEditor(), addon_kvs_cmd_list(), ClassEditorWidget::appendAllClassItems(), KviKvsHash::appendAsString(), KviStatusBar::appletsPopupAboutToShow(), KviStatusBar::appletsPopupActivated(), ClassEditorWidget::build(), KviStupidNotifyListManager::buildNickList(), KviIsOnNotifyListManager::buildRegUserDict(), KviWatchNotifyListManager::buildRegUserDict(), KviKvsVariant::castToArray(), PluginManager::checkUnload(), KviAvatarCache::cleanup(), KviSharedFilesManager::cleanup(), KviModuleManager::cleanupUnusedModules(), KviKvsObjectController::clearUserClasses(), PopupEditorWidget::commit(), KviKvsAliasManager::completeCommand(), KviKvsKernel::completeFunction(), config_kvs_fnc_filelist(), config_kvs_fnc_id(), config_kvs_fnc_keylist(), config_kvs_fnc_open(), config_kvs_fnc_sectionlist(), KviKvsVariant::convertToArray(), KviRegisteredUserDataBase::copyFrom(), KviUserIdentityManager::copyFrom(), ClassEditorWidget::createFullClass(), KviCustomToolBarManager::createToolBarsVisibleAtStartup(), dcc_kvs_fnc_sessionList(), KviUserIdentityManager::defaultIdentity(), KviKvsScriptAddonManager::delayedLoad(), KviActionManager::delayedRegisterAccelerators(), KviKvsTimerManager::deleteAllTimers(), KviKvsTreeNodeSwitchList::dump(), KviKvsTreeNodeSwitchList::evaluate(), KviActionDrawer::fill(), KviTextIconWindow::fill(), RegisteredUserPropertiesDialog::fillData(), SharedFilesWindow::fillFileView(), AddonManagementDialog::fillListView(), OptionsWidget_servers::fillServerList(), OptionsWidget_textIcons::fillTable(), KviMainWindow::fillToolBarsPopup(), KviCustomToolBarManager::findDescriptorByInternalId(), KviCustomToolBarManager::firstExistingToolBar(), KviKvsObjectController::flushUserClasses(), KviKvsKernel::getAllFunctionsCommandsCore(), KviKvsModuleInterface::getAllFunctionsCommandsModule(), KviSoundPlayer::getAvailableSoundSystems(), KviModuleManager::hasLockedModules(), HttpFileTransfer::headersReceived(), ListWindow::importList(), KviActionManager::killAllKvsUserActions(), KviClassEditorDialog::KviClassEditorDialog(), KviKvsHash::KviKvsHash(), KviKvsObjectClass::KviKvsObjectClass(), KviKvsCoreFunctions::KVSCF(), KviKvsCoreSimpleCommands::KVSCSC(), KviActionManager::listActionsByCategory(), KviActionManager::load(), KviAvatarCache::load(), KviCustomToolBarManager::load(), KviIrcServerDataBase::load(), KviKvsAliasManager::load(), KviKvsPopupManager::load(), KviRegisteredChannelDataBase::load(), KviRegisteredUserDataBase::load(), KviTextIconManager::load(), KviUserIdentityManager::load(), ClassEditorWidget::loadNotBuiltClasses(), KviIrcServerDataBase::makeCurrentServer(), KviUserListViewArea::mousePressEvent(), KviNotifyListManager::notifyOffLine(), KviNotifyListManager::notifyOnLine(), objects_kvs_fnc_classAllHandlers(), objects_kvs_fnc_classes(), objects_kvs_fnc_instances(), objects_kvs_fnc_variables(), RegisteredUserEntryDialog::okClicked(), AliasEditorWidget::oneTimeSetup(), ClassEditorWidget::oneTimeSetup(), PopupEditorWidget::oneTimeSetup(), options_module_cleanup(), OptionsWidget_textEncoding::OptionsWidget_textEncoding(), package_kvs_fnc_info(), KviPackageWriter::packInternal(), KviUserListView::partAllButOne(), KviIrcUserDataBase::registeredDatabaseCleared(), KviIrcUserDataBase::registeredUserAdded(), KviIrcUserDataBase::registeredUserChanged(), RegisteredUserEntryDialog::RegisteredUserEntryDialog(), reguser_kvs_cmd_showlist(), reguser_kvs_fnc_list(), KviUserListView::removeAllEntries(), KviKvsAliasManager::removeNamespace(), KviConsoleWindow::resetAvatarForMatchingUsers(), KviActionManager::save(), KviAvatarCache::save(), KviConfigurationFile::save(), KviCustomToolBarManager::save(), KviIrcServerDataBase::save(), KviKvsAliasManager::save(), KviKvsObjectClass::save(), KviKvsPopupManager::save(), KviKvsScriptAddonManager::save(), KviRegisteredUserDataBase::save(), KviSharedFilesManager::save(), KviTextIconManager::save(), KviUserIdentityManager::save(), ClassEditorWidget::saveNotBuiltClasses(), KviApplication::saveRecentChannels(), KviMainWindow::saveWindowProperties(), ClassEditorWidget::searchInheritedClasses(), ClassEditorWidget::searchReplace(), KviUserListView::select(), KviKvsHash::serialize(), serverdb_kvs_fnc_serverExists(), KviMainWindow::setButtonStyle(), KviMainWindow::setIconSize(), sharedfile_kvs_cmd_list(), SingleActionEditor::SingleActionEditor(), KviCustomToolBarManager::storeVisibilityState(), texticons_kvs_fnc_get(), KviPointerHashTableIterator< QString, QString >::toFirst(), toolbar_kvs_fnc_list(), PluginManager::unloadAll(), KviModuleManager::unloadAllModules(), KviModuleExtensionManager::unregisterExtensionsByModule(), KviCustomToolBarManager::updateVisibleToolBars(), KviCustomToolBarManager::visibleToolBarCount(), and KviActionManager::~KviActionManager().
|
inline |
Returns the key pointed by the iterator.
If the iterator is not valid it returns a default constructed value
Referenced by PluginManager::checkUnload(), KviAvatarCache::cleanup(), KviSharedFilesManager::cleanup(), PopupEditorWidget::commit(), KviKvsKernel::completeFunction(), config_kvs_fnc_filelist(), config_kvs_fnc_id(), config_kvs_fnc_keylist(), config_kvs_fnc_open(), config_kvs_fnc_sectionlist(), KviRegisteredUserDataBase::copyFrom(), ClassEditorWidget::createFullClass(), KviKvsScriptAddonManager::delayedLoad(), KviKvsTreeNodeSwitchList::dump(), KviKvsTreeNodeSwitchList::evaluate(), KviTextIconWindow::fill(), RegisteredUserPropertiesDialog::fillData(), OptionsWidget_textIcons::fillTable(), KviKvsKernel::getAllFunctionsCommandsCore(), KviKvsModuleInterface::getAllFunctionsCommandsModule(), KviSoundPlayer::getAvailableSoundSystems(), HttpFileTransfer::headersReceived(), ListWindow::importList(), KviClassEditorDialog::KviClassEditorDialog(), KviKvsHash::KviKvsHash(), KviKvsObjectClass::KviKvsObjectClass(), KviActionManager::load(), KviAvatarCache::load(), KviCustomToolBarManager::load(), KviIrcServerDataBase::load(), KviKvsAliasManager::load(), KviKvsPopupManager::load(), KviRegisteredChannelDataBase::load(), KviRegisteredUserDataBase::load(), KviTextIconManager::load(), KviUserIdentityManager::load(), ClassEditorWidget::loadNotBuiltClasses(), objects_kvs_fnc_classAllHandlers(), objects_kvs_fnc_classes(), objects_kvs_fnc_variables(), RegisteredUserEntryDialog::okClicked(), ClassEditorWidget::oneTimeSetup(), OptionsWidget_textEncoding::OptionsWidget_textEncoding(), package_kvs_fnc_info(), KviPackageWriter::packInternal(), KviUserListView::partAllButOne(), RegisteredUserEntryDialog::RegisteredUserEntryDialog(), reguser_kvs_cmd_showlist(), KviUserListView::removeAllEntries(), KviConsoleWindow::resetAvatarForMatchingUsers(), KviAvatarCache::save(), KviConfigurationFile::save(), KviKvsObjectClass::save(), KviRegisteredUserDataBase::save(), KviSharedFilesManager::save(), KviTextIconManager::save(), ClassEditorWidget::saveNotBuiltClasses(), KviApplication::saveRecentChannels(), KviMainWindow::saveWindowProperties(), KviKvsHash::serialize(), sharedfile_kvs_cmd_list(), texticons_kvs_fnc_get(), PluginManager::unloadAll(), and KviModuleExtensionManager::unregisterExtensionsByModule().
|
inline |
Moves the iterator to the first element of the hash table.
Returns true in case of success or false if the hash table is empty.
Referenced by KviPointerHashTableIterator< QString, QString >::KviPointerHashTableIterator(), OptionsWidget_textEncoding::OptionsWidget_textEncoding(), and KviPointerHashTableIterator< QString, QString >::toFirst().
|
inline |
Moves the iterator to the last element of the hash table.
Returns true in case of success or false if the hash table is empty.
|
inline |
Moves the iterator to the next element of the hash table.
The iterator must be actually valid for this function to work. Returns true in case of success or false if there is no next item.
Referenced by PluginManager::checkUnload(), KviPointerHashTableIterator< QString, QString >::operator++(), OptionsWidget_textEncoding::OptionsWidget_textEncoding(), package_kvs_fnc_info(), KviKvsAliasManager::removeNamespace(), and PluginManager::unloadAll().
|
inline |
Moves the iterator to the previous element of the hash table.
The iterator must be actually valid for this function to work. Returns true in case of success or false if there is no previous item.
Referenced by KviPointerHashTableIterator< QString, QString >::operator--().
|
inline |
Returns the value pointed by the iterator.
If the iterator is not valid it returns a default constructed value This is an alias to current() with just a different name.
|
inline |
Moves the iterator to the next element of the hash table.
The iterator must be actually valid for this function to work. Returns true in case of success or false if there is no next item. This is just an alias to moveNext().
|
inline |
Moves the iterator to the previous element of the hash table.
The iterator must be actually valid for this function to work. Returns true in case of success or false if there is no previous item. This is just an alias to movePrev() with a different name.
|
inline |
Creates an iterator copy.
The new iterator points exactly to the item pointed by src.
src | The source pointer to copy from |
|
inline |
Moves the iterator to the first element of the hash table.
Returns the first item found or nullptr if the hash table is empty.
Referenced by KviAvatarCache::cleanup(), and KviIrcServerDataBase::makeCurrentServer().
|
protected |
Referenced by KviPointerHashTableIterator< QString, QString >::operator=().
|
protected |
Referenced by KviPointerHashTableIterator< QString, QString >::operator=().
|
protected |