language/duchain
KDevelop::RepositoryManager< ItemRepositoryType, unloadingEnabled, lazy > Struct Template Reference
This class helps managing the lifetime of a global item repository, and protecting the consistency. More...
#include <itemrepository.h>
Inheritance diagram for KDevelop::RepositoryManager< ItemRepositoryType, unloadingEnabled, lazy >:

Public Member Functions | |
| RepositoryManager (QString name, int version=1, AbstractRepositoryManager *(*shareMutex)()=0, ItemRepositoryRegistry ®istry=globalItemRepositoryRegistry()) | |
| ItemRepositoryType * | operator-> () const |
| QMutex * | repositoryMutex () const |
Detailed Description
template<class ItemRepositoryType, bool unloadingEnabled = true, bool lazy = true>
struct KDevelop::RepositoryManager< ItemRepositoryType, unloadingEnabled, lazy >
This class helps managing the lifetime of a global item repository, and protecting the consistency.
Especially it helps doing thread-safe lazy repository-creation
Definition at line 199 of file itemrepository.h.
Constructor & Destructor Documentation
template<class ItemRepositoryType, bool unloadingEnabled = true, bool lazy = true>
| KDevelop::RepositoryManager< ItemRepositoryType, unloadingEnabled, lazy >::RepositoryManager | ( | QString | name, | |
| int | version = 1, |
|||
| AbstractRepositoryManager< ItemRepositoryType, unloadingEnabled, lazy > *(*)() | shareMutex = 0, |
|||
| ItemRepositoryRegistry & | registry = globalItemRepositoryRegistry() | |||
| ) | [inline] |
- Parameters:
-
shareMutex Option repository from where this repository should take the thread-safety mutex
Definition at line 202 of file itemrepository.h.
The documentation for this struct was generated from the following file:
KDE 4.4 API Reference