• Skip to content
  • Skip to link menu
KDE 4.4 API Reference
  • KDE API Reference
  • KDevelop Platform Libraries
  • Sitemap
  • Contact Us
 

language/duchain

KDevelop::PersistentSetMap

KDevelop::PersistentSetMap< Key, Data, Handler, Hasher > Class Template Reference

This class allows easily implement a very efficient persistent map from a key, to a set of data items. More...

#include <persistentsetmap.h>

List of all members.

Public Member Functions

 PersistentSetMap (QString name)
void addItem (const Key &key, const Data &data)
void items (const Key &key, uint &countTarget, const Data *&datasTarget) const
void removeItem (const Key &key, const Data &data)

Detailed Description

template<class Key, class Data, class Handler, class Hasher = HashHasher<Key>>
class KDevelop::PersistentSetMap< Key, Data, Handler, Hasher >

This class allows easily implement a very efficient persistent map from a key, to a set of data items.

Parameters:
Key The key class, from which a set of Data items is mapped. It must be safely memory-copyable((no virtual functions etc),
Data The data class, of which a set will be stored. The data must be safely memory-copyable(no virtual functions etc), and it must be compatbiel with EmbeddedFreeTree
Handler Must be a handler that allows storing additional information into invalid items,
See also:
util/embeddedfreetree.h
Parameters:
Hasher A hasher that extracts a hash-value from the key.

Definition at line 133 of file persistentsetmap.h.


Member Function Documentation

template<class Key , class Data , class Handler , class Hasher >
void KDevelop::PersistentSetMap< Key, Data, Handler, Hasher >::items ( const Key &  key,
uint &  countTarget,
const Data *&  datasTarget 
) const [inline]

The returned list may contain "invalid" items, those have to be filtered out by the user.

Definition at line 233 of file persistentsetmap.h.


The documentation for this class was generated from the following file:
  • persistentsetmap.h

language/duchain

Skip menu "language/duchain"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

KDevelop Platform Libraries

Skip menu "KDevelop Platform Libraries"
  • interfaces
  • language
  •   codegen
  •   duchain
  •   editor
  • outputview
  • project
  • shell
  • sublime
  • util
  • vcs
Generated for KDevelop Platform Libraries by doxygen 1.5.9-20090814
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal