strigi/src/streams
ArchiveEntryCache Class Reference
A cache for entries that have already been found. More...
#include <archiveentrycache.h>
Classes | |
| class | RootSubEntry |
| Represents a top-level entry in the cache. More... | |
| class | SubEntry |
| Represents an entry in the cache. More... | |
Public Types | |
| typedef std::map< std::string, RootSubEntry * > | RootCache |
| typedef std::map< std::string, SubEntry * > | SubEntryMap |
Public Member Functions | |
| ~ArchiveEntryCache () | |
| const SubEntry * | findEntry (const std::string &url) const |
| std::map< std::string, RootSubEntry * > ::const_iterator | findRootEntry (const std::string &url) const |
Public Attributes | |
| RootCache | cache |
Detailed Description
A cache for entries that have already been found.
For internal use only.
The cache is stored in a tree, sorted on the path in the URL (with / as the delimiter).
Definition at line 32 of file archiveentrycache.h.
Member Typedef Documentation
| typedef std::map<std::string, RootSubEntry*> ArchiveEntryCache::RootCache |
The cache itself.
Contains all the root entries in the cache.
Definition at line 74 of file archiveentrycache.h.
| typedef std::map<std::string, SubEntry *> ArchiveEntryCache::SubEntryMap |
Definition at line 34 of file archiveentrycache.h.
Constructor & Destructor Documentation
| ArchiveEntryCache::~ArchiveEntryCache | ( | ) | [inline] |
Definition at line 63 of file archiveentrycache.h.
Member Function Documentation
| const SubEntry* ArchiveEntryCache::findEntry | ( | const std::string & | url | ) | const |
Find an entry in the cache by its URL.
- Parameters:
-
url the url of the entry
- Returns:
- a pointer to the entry, if it is in the cache, 0 if the entry is not in the cache
| std::map<std::string, RootSubEntry*>::const_iterator ArchiveEntryCache::findRootEntry | ( | const std::string & | url | ) | const |
Finds the root subentry in the cache of the given url, if it is in the cache.
This finds the RootSubEntry (tree root) that the SubEntry for the given url either is or should be stored under. If there is no suitable RootSubEntry in the cache, cache.end() is returned.
- Parameters:
-
url the url of the object to find the root entry for
- Returns:
- an iterator to the root entry
Member Data Documentation
Definition at line 75 of file archiveentrycache.h.
The documentation for this class was generated from the following file:
KDE 4.4 API Reference