FreeNOS
Public Member Functions | Data Fields
FileCache Struct Reference

Cached in-memory file. More...

#include <FileCache.h>

Public Member Functions

 FileCache (File *f, const char *n, FileCache *p)
 Constructor function. More...
 

Data Fields

Filefile
 File pointer. More...
 
String name
 Our name. More...
 
HashTable< String, FileCache * > entries
 Contains childs. More...
 
FileCacheparent
 Parent. More...
 

Detailed Description

Cached in-memory file.

Definition at line 35 of file FileCache.h.

Constructor & Destructor Documentation

◆ FileCache()

FileCache::FileCache ( File f,
const char *  n,
FileCache p 
)
inline

Constructor function.

Parameters
fFile to insert into the cache.
nEntry name of the File in the parent, if any.
pOur parent. ZERO if we have no parent.

Definition at line 44 of file FileCache.h.

References entries, HashTable< K, V >::insert(), and name.

Field Documentation

◆ entries

HashTable<String, FileCache *> FileCache::entries

◆ file

File* FileCache::file

◆ name

String FileCache::name

Our name.

Definition at line 59 of file FileCache.h.

Referenced by FileSystemServer::clearFileCache(), FileCache(), and FileSystemServer::removeFileFromCache().

◆ parent

FileCache* FileCache::parent

Parent.

Definition at line 65 of file FileCache.h.

Referenced by FileSystemServer::clearFileCache().


The documentation for this struct was generated from the following file: