Coda Distributed File System
Public Member Functions | Friends | List of all members
vhashtab Class Reference

#include <volhash.h>

Inheritance diagram for vhashtab:
Inheritance graph
[legend]
Collaboration diagram for vhashtab:
Collaboration graph
[legend]

Public Member Functions

 vhashtab (int size, intptr_t(*hashfn)(void *), const char *)
 
 ~vhashtab ()
 
void Lock (int)
 
void Unlock ()
 
void add (hashent *)
 
void remove (hashent *)
 
hashentfind (VolumeId)
 
int volumes ()
 
void vprint (FILE *=NULL)
 
- Public Member Functions inherited from ohashtab
 ohashtab (int size, intptr_t(*hashfn)(void *))
 
 ohashtab (ohashtab &)
 
int operator= (ohashtab &)
 
virtual ~ohashtab ()
 
void insert (void *, olink *)
 
void append (void *, olink *)
 
olinkremove (void *, olink *)
 
olinkfirst ()
 
olinklast ()
 
olinkget (void *)
 
void clear ()
 
int count ()
 
int IsMember (void *, olink *)
 
int bucket (void *)
 
virtual void print ()
 
virtual void print (FILE *)
 
virtual void print (int)
 
olinkFindObject (void *key, void *tag, otagcompare_t cmpfn)
 

Friends

void InitVolTable (int)
 

Constructor & Destructor Documentation

◆ vhashtab()

vhashtab::vhashtab ( int  size,
intptr_t(*)(void *)  hashfn,
const char *  n 
)

◆ ~vhashtab()

vhashtab::~vhashtab ( )

Member Function Documentation

◆ add()

void vhashtab::add ( hashent vol)

◆ find()

hashent * vhashtab::find ( VolumeId  volid)

◆ Lock()

void vhashtab::Lock ( int  level)

◆ remove()

void vhashtab::remove ( hashent vol)

◆ Unlock()

void vhashtab::Unlock ( )

◆ volumes()

int vhashtab::volumes ( )

◆ vprint()

void vhashtab::vprint ( FILE *  fp = NULL)

Friends And Related Function Documentation

◆ InitVolTable

void InitVolTable ( int  )
friend

The documentation for this class was generated from the following files: