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

#include <ohash.h>

Inheritance diagram for ohashtab:
Inheritance graph
[legend]

Public Member Functions

 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

class ohashtab_iterator
 

Constructor & Destructor Documentation

◆ ohashtab() [1/2]

ohashtab::ohashtab ( int  size,
intptr_t(*)(void *)  hashfn 
)

◆ ohashtab() [2/2]

ohashtab::ohashtab ( ohashtab ht)

◆ ~ohashtab()

ohashtab::~ohashtab ( )
virtual

Member Function Documentation

◆ append()

void ohashtab::append ( void *  key,
olink p 
)

◆ bucket()

int ohashtab::bucket ( void *  key)

◆ clear()

void ohashtab::clear ( )

◆ count()

int ohashtab::count ( )

◆ FindObject()

olink * ohashtab::FindObject ( void *  key,
void *  tag,
otagcompare_t  cmpfn 
)

◆ first()

olink * ohashtab::first ( )

◆ get()

olink * ohashtab::get ( void *  key)

◆ insert()

void ohashtab::insert ( void *  key,
olink p 
)

◆ IsMember()

int ohashtab::IsMember ( void *  key,
olink p 
)

◆ last()

olink * ohashtab::last ( )

◆ operator=()

int ohashtab::operator= ( ohashtab ht)

◆ print() [1/3]

void ohashtab::print ( void  )
virtual

Reimplemented in vrtab.

◆ print() [2/3]

void ohashtab::print ( FILE *  fp)
virtual

Reimplemented in vrtab.

◆ print() [3/3]

void ohashtab::print ( int  fd)
virtual

Reimplemented in vrtab.

◆ remove()

olink * ohashtab::remove ( void *  key,
olink p 
)

Friends And Related Function Documentation

◆ ohashtab_iterator

friend class ohashtab_iterator
friend

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