Référence de la classe KoGenericRegistry< T > (modèle)

#include <KoGenericRegistry.h>

Graphe d'héritage de KoGenericRegistry< T >:

[légende]
Liste de tous les membres

Fonctions membres publiques

 KoGenericRegistry ()
virtual ~KoGenericRegistry ()
void add (T item)
void add (KoID id, T item)
remove (const KoID &name)
remove (const QString &id)
get (const KoID &name) const
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< KoIDlistKeys () 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

Description détaillée

template<typename T>
class KoGenericRegistry< T >

Base class for registry objects.

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.


Documentation des définition de type membres

template<typename T>
typedef std::map<KoID, T> KoGenericRegistry< T >::storageMap [protected]

Définition à la ligne 39 du fichier KoGenericRegistry.h.


Documentation des contructeurs et destructeur

template<typename T>
KoGenericRegistry< T >::KoGenericRegistry (  )  [inline]

Définition à la ligne 41 du fichier KoGenericRegistry.h.

template<typename T>
virtual KoGenericRegistry< T >::~KoGenericRegistry (  )  [inline, virtual]

Définition à la ligne 42 du fichier KoGenericRegistry.h.

template<typename T>
KoGenericRegistry< T >::KoGenericRegistry ( const KoGenericRegistry< T > &   )  [inline, protected]

Définition à la ligne 175 du fichier KoGenericRegistry.h.


Documentation des fonctions membres

template<typename T>
void KoGenericRegistry< T >::add ( item  )  [inline]

add an object to the registry

Paramètres:
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 :

template<typename T>
void KoGenericRegistry< T >::add ( KoID  id,
item 
) [inline]

add an object to the registry

Paramètres:
id the id of the object
item the item

Définition à la ligne 58 du fichier KoGenericRegistry.h.

template<typename T>
T KoGenericRegistry< T >::remove ( const KoID name  )  [inline]

This function remove an item from the registry

Renvoie:
the object which have been remove from the registry and which can be safely delete

Définition à la ligne 66 du fichier KoGenericRegistry.h.

Référencé par KoGenericRegistry< KoToolFactory * >::remove().

Voici le graphe d'appel pour cette fonction :

template<typename T>
T KoGenericRegistry< T >::remove ( const QString &  id  )  [inline]

This function remove an item from the registry

Paramètres:
id the identifiant of the object
Renvoie:
the object which have been remove from the registry and which can be safely delete

Définition à la ligne 81 du fichier KoGenericRegistry.h.

template<typename T>
T KoGenericRegistry< T >::get ( const KoID name  )  const [inline]

This function allow to get an object from its KoID

Paramètres:
name the KoID of the object
Renvoie:
T 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 :

template<typename T>
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.

template<typename T>
bool KoGenericRegistry< T >::exists ( const KoID id  )  const [inline]

Paramètres:
id 
Renvoie:
true if there is an object corresponding to 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 :

template<typename T>
bool KoGenericRegistry< T >::exists ( const QString &  id  )  const [inline]

Définition à la ligne 119 du fichier KoGenericRegistry.h.

template<typename T>
bool KoGenericRegistry< T >::search ( const QString &  t,
KoID result 
) const [inline]

This function allow to search a KoID from the name.

Paramètres:
t the name to search
result The result is filled in this variable
Renvoie:
true if the search has been successful, false otherwise

Définition à la ligne 129 du fichier KoGenericRegistry.h.

template<typename T>
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.

template<typename T>
QList<QString> KoGenericRegistry< T >::keys (  )  const [inline]

Returns a list of all the keys

Renvoie:
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 :

template<typename T>
KoGenericRegistry KoGenericRegistry< T >::operator= ( const KoGenericRegistry< T > &   )  [inline, protected]

Définition à la ligne 176 du fichier KoGenericRegistry.h.


Documentation des données membres

template<typename T>
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().


La documentation de cette classe a été générée à partir du fichier suivant :
Généré le Wed Nov 22 23:45:43 2006 pour KPlato par  doxygen 1.5.1-p1