GLAST/LAT > DAQ and FSW > FSW > Doxygen Index > QSD / V0-4-4
Constituent: qsu     Tag: sun-gcc
#include "QSD/QFR_file.h"
Include dependency graph for QFC_cache.h:
This graph shows which files directly or indirectly include this file:
Typedefs | |
typedef _QFC_cache | QFC_cache |
typedef _QFR_fileCtx | QFR_fileCtx |
typedef _QFC_member | QFC_member |
typedef _QFC_file | QFC_file |
Typedef for struct _QFC_file. | |
typedef _QFC_subscription | QFC_subscription |
Typedef for struct _QFC_cacheSubscriber. | |
Functions | |
int | QFC_sizeof (int nmembers) |
Returns the size, in bytes, of a cache needed to hold nmembers. | |
void * | QFC_construct (QFC_cache *cache, int nmembers) |
Constructs a cache with nmembers. | |
void | QFC_destruct (QFC_cache *cache) |
Destroys the cache. All subscribers are notified. | |
QFC_member * | QFC_findByKey (QFC_cache *cache, unsigned int key) |
Locates the cache member by its key. | |
int | QFC_validate (const QFC_cache *cache, const QFC_member *member, unsigned int key) |
Validates the member. | |
QFC_member * | QFC_add (QFC_cache *cache, unsigned int key, const char *name, void *other) |
Adds the file to the cache. If the cache is full, the oldest member is removed. Subscribers will be notified on the replacement and posible removal. | |
int | QFC_remove (QFC_cache *cache, QFC_member *member) |
Removes the member from the cache. Subscribers will be notified. | |
int | QFC_removeByKey (QFC_cache *cache, unsigned int key) |
Removes the member from the cache be key. | |
int | QFC_resolve (QFC_cache *cache, QFR_fileCtx *ctx, QFC_file *file, unsigned int key, const char *dirName, const char *fileName, QFR_resolver resolver) |
void | QFC_subscribe (QFC_cache *cache, QFC_subscription *subscription) |
Adds a subscription to the cache. The subscriber will be notified on member removal and replacement. | |
void | QFC_unsubscribe (QFC_cache *cache, QFC_subscription *subscription) |
Removes a subscription to the cache. |
CVS $Id: QFC_cache.h,v 1.3 2008/09/19 19:18:51 russell Exp $
|
Adds the file to the cache. If the cache is full, the oldest member is removed. Subscribers will be notified on the replacement and posible removal.
|
|
Constructs a cache with nmembers.
|
|
Destroys the cache. All subscribers are notified.
|
|
Locates the cache member by its key.
|
|
Removes the member from the cache. Subscribers will be notified.
|
|
Removes the member from the cache be key.
|
|
Returns the size, in bytes, of a cache needed to hold nmembers.
|
|
Adds a subscription to the cache. The subscriber will be notified on member removal and replacement.
|
|
Removes a subscription to the cache.
|
|
Validates the member.
|