LAL  7.5.0.1-b72065a
LALCache.h File Reference

Prototypes

LALCacheXLALCreateCache (UINT4 length)
 Creates a LALCache structure. More...
 
void XLALDestroyCache (LALCache *cache)
 Destroys a LALCache structure. More...
 
LALCacheXLALCacheDuplicate (const LALCache *cache)
 Duplicates a LALCache structure. More...
 
LALCacheXLALCacheMerge (const LALCache *cache1, const LALCache *cache2)
 Returns a new LALCache structure that is the merge of two. More...
 
LALCacheXLALCacheFileRead (LALFILE *fp)
 Reads a LAL cache file and produces a LALCache structure. More...
 
LALCacheXLALCacheImport (const char *fname)
 Reads a LAL cache file and produces a LALCache structure. More...
 
LALCacheXLALCacheGlob (const char *dirstr, const char *fnptrn)
 Globs a directory and construct LALCache from matching entries. More...
 
int XLALCacheFileWrite (LALFILE *fp, const LALCache *cache)
 Writes a LALCache structure to output LALFILE. More...
 
int XLALCacheExport (const LALCache *cache, const char *filename)
 Exports a LALCache structure to an output LAL cache file. More...
 
int XLALCacheSort (LALCache *cache)
 Sorts entries in a LALCache structure. More...
 
int XLALCacheUniq (LALCache *cache)
 Prunes duplicate entries keeping the second one; cache is reduced in length if there are. More...
 
int XLALCacheSieve (LALCache *cache, INT4 t0, INT4 t1, const char *srcregex, const char *dscregex, const char *urlregex)
 Selects only matching entries in a LALCache structure – other entries are deleted from the LALCache structure. More...
 
LALCacheEntryXLALCacheEntrySeek (const LALCache *cache, double t)
 Finds the first entry that contains the requested time, or the first entry after the time if the time is in a gap or before the first entry. More...
 
LALFILE * XLALCacheEntryOpen (const LALCacheEntry *entry)
 Open a file identified by an entry in a LALCache structure. More...
 

Go to the source code of this file.

Data Structures

struct  LALCacheEntry
 An entry in a LAL cache. More...
 
struct  LALCache
 The LALCache structure is an array of entries. More...