• Skip to content
  • Skip to link menu
KDE 4.4 API Reference
  • KDE API Reference
  • KDE Support
  • Sitemap
  • Contact Us
 

strigi/src/streams

ArchiveEntryCache Class Reference

A cache for entries that have already been found. More...

#include <archiveentrycache.h>

List of all members.

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

RootCache ArchiveEntryCache::cache

Definition at line 75 of file archiveentrycache.h.


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

strigi/src/streams

Skip menu "strigi/src/streams"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members

KDE Support

Skip menu "KDE Support"
  • akonadi
  • Decibel
  • grantlee
  • kdewin
  • phonon
  •     Backend
  • polkit-qt
  • qca
  • qimageblitz
  • soprano
  • strigi
  •     searchclient
  •     streamanalyzer
  •     streams
Generated for KDE Support 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