#include <KoGenericRegistry.h>
Graphe d'héritage de KoGenericRegistry< T >:
Fonctions membres publiques | |
| KoGenericRegistry () | |
| virtual | ~KoGenericRegistry () |
| void | add (T item) |
| void | add (KoID id, T item) |
| T | remove (const KoID &name) |
| T | remove (const QString &id) |
| T | get (const KoID &name) const |
| T | get (const QString &id) const |
| bool | exists (const KoID &id) const |
| bool | exists (const QString &id) const |
| bool | search (const QString &t, KoID &result) const |
| QList< KoID > | listKeys () const |
| QList< QString > | keys () const |
Types protégés | |
| typedef std::map< KoID, T > | storageMap |
Fonctions membres protégées | |
| KoGenericRegistry (const KoGenericRegistry &) | |
| KoGenericRegistry | operator= (const KoGenericRegistry &) |
Attributs protégés | |
| storageMap | m_storage |
Items are mapped by KoID. A KoID is the combination of a non-localized string that can be used in files and a user-visible, translated string that can be used in the user interface.
Définition à la ligne 37 du fichier KoGenericRegistry.h.
typedef std::map<KoID, T> KoGenericRegistry< T >::storageMap [protected] |
Définition à la ligne 39 du fichier KoGenericRegistry.h.
| KoGenericRegistry< T >::KoGenericRegistry | ( | ) | [inline] |
Définition à la ligne 41 du fichier KoGenericRegistry.h.
| virtual KoGenericRegistry< T >::~KoGenericRegistry | ( | ) | [inline, virtual] |
Définition à la ligne 42 du fichier KoGenericRegistry.h.
| KoGenericRegistry< T >::KoGenericRegistry | ( | const KoGenericRegistry< T > & | ) | [inline, protected] |
Définition à la ligne 175 du fichier KoGenericRegistry.h.
| void KoGenericRegistry< T >::add | ( | T | item | ) | [inline] |
add an object to the registry
| item | the item to add (NOTE: T must have an KoID id() function) |
Définition à la ligne 49 du fichier KoGenericRegistry.h.
Référencé par KoHistogramProducerFactoryRegistry::instance(), et K_EXPORT_COMPONENT_FACTORY().
Voici le graphe d'appel pour cette fonction :
| void KoGenericRegistry< T >::add | ( | KoID | id, | |
| T | item | |||
| ) | [inline] |
add an object to the registry
| id | the id of the object | |
| item | the item |
Définition à la ligne 58 du fichier KoGenericRegistry.h.
| T KoGenericRegistry< T >::remove | ( | const KoID & | name | ) | [inline] |
This function remove an item from the registry
Définition à la ligne 66 du fichier KoGenericRegistry.h.
Référencé par KoGenericRegistry< KoToolFactory * >::remove().
Voici le graphe d'appel pour cette fonction :
| T KoGenericRegistry< T >::remove | ( | const QString & | id | ) | [inline] |
This function remove an item from the registry
| id | the identifiant of the object |
Définition à la ligne 81 du fichier KoGenericRegistry.h.
| T KoGenericRegistry< T >::get | ( | const KoID & | name | ) | const [inline] |
This function allow to get an object from its KoID
| name | the KoID of the object |
Définition à la ligne 90 du fichier KoGenericRegistry.h.
Référencé par KoCreateShapeStrategy::createCommand(), KoGenericRegistry< KoToolFactory * >::get(), KoShapeSelector::loadShapeTypes(), et KoToolManager::setup().
Voici le graphe d'appel pour cette fonction :
| T KoGenericRegistry< T >::get | ( | const QString & | id | ) | const [inline] |
Get a single entry based on the identifying part of KoID, not the the descriptive part.
Définition à la ligne 104 du fichier KoGenericRegistry.h.
| bool KoGenericRegistry< T >::exists | ( | const KoID & | id | ) | const [inline] |
| id |
Définition à la ligne 113 du fichier KoGenericRegistry.h.
Référencé par KoGenericRegistry< KoToolFactory * >::exists().
Voici le graphe d'appel pour cette fonction :
| bool KoGenericRegistry< T >::exists | ( | const QString & | id | ) | const [inline] |
Définition à la ligne 119 du fichier KoGenericRegistry.h.
| bool KoGenericRegistry< T >::search | ( | const QString & | t, | |
| KoID & | result | |||
| ) | const [inline] |
This function allow to search a KoID from the name.
| t | the name to search | |
| result | The result is filled in this variable |
Définition à la ligne 129 du fichier KoGenericRegistry.h.
| QList<KoID> KoGenericRegistry< T >::listKeys | ( | ) | const [inline] |
This function return a list of all the keys in KoID format
Définition à la ligne 145 du fichier KoGenericRegistry.h.
| QList<QString> KoGenericRegistry< T >::keys | ( | ) | const [inline] |
Returns a list of all the keys
Définition à la ligne 162 du fichier KoGenericRegistry.h.
Référencé par KoToolManager::attachCanvas(), et KoToolManager::setup().
Voici le graphe d'appel pour cette fonction :
| KoGenericRegistry KoGenericRegistry< T >::operator= | ( | const KoGenericRegistry< T > & | ) | [inline, protected] |
Définition à la ligne 176 du fichier KoGenericRegistry.h.
storageMap KoGenericRegistry< T >::m_storage [protected] |
Définition à la ligne 177 du fichier KoGenericRegistry.h.
Référencé par KoGenericRegistry< KoToolFactory * >::add(), KoGenericRegistry< KoToolFactory * >::exists(), KoGenericRegistry< KoToolFactory * >::get(), KoGenericRegistry< KoToolFactory * >::keys(), KoGenericRegistry< KoToolFactory * >::listKeys(), KoGenericRegistry< KoToolFactory * >::remove(), et KoGenericRegistry< KoToolFactory * >::search().
1.5.1-p1