xrootd
Public Member Functions | Private Member Functions | Private Attributes
XrdOucHash Class Reference

#include <XrdOucHash.hh>

Collaboration diagram for XrdOucHash:
Collaboration graph
[legend]

List of all members.

Public Member Functions

T * Add (const char *KeyVal, T *KeyData, const int LifeTime=0, XrdOucHash_Options opt=Hash_default)
int Del (const char *KeyVal, XrdOucHash_Options opt=Hash_default)
T * Find (const char *KeyVal, time_t *KeyTime=0)
int Num ()
void Purge ()
T * Rep (const char *KeyVal, T *KeyData, const int LifeTime=0, XrdOucHash_Options opt=Hash_default)
T * Apply (int(*func)(const char *, T *, void *), void *Arg)
 XrdOucHash (int psize=89, int size=144, int load=80)
 ~XrdOucHash ()

Private Member Functions

void Remove (int kent, XrdOucHash_Item< T > *hip, XrdOucHash_Item< T > *phip)
XrdOucHash_Item< T > * Search (XrdOucHash_Item< T > *hip, const unsigned long khash, const char *kval, XrdOucHash_Item< T > **phip=0)
unsigned long HashVal (const char *KeyVal)
void Expand ()

Private Attributes

XrdOucHash_Item< T > ** hashtable
int prevtablesize
int hashtablesize
int hashnum
int hashmax
int hashload

Constructor & Destructor Documentation

XrdOucHash::XrdOucHash ( int  psize = 89,
int  size = 144,
int  load = 80 
)
XrdOucHash::~XrdOucHash ( ) [inline]

Member Function Documentation

T * XrdOucHash::Add ( const char *  KeyVal,
T *  KeyData,
const int  LifeTime = 0,
XrdOucHash_Options  opt = Hash_default 
)
T * XrdOucHash::Apply ( int(*)(const char *, T *, void *)  func,
void *  Arg 
)
int XrdOucHash::Del ( const char *  KeyVal,
XrdOucHash_Options  opt = Hash_default 
)
void XrdOucHash::Expand ( ) [private]
T * XrdOucHash::Find ( const char *  KeyVal,
time_t *  KeyTime = 0 
)
unsigned long XrdOucHash::HashVal ( const char *  KeyVal) [private]
int XrdOucHash::Num ( ) [inline]
void XrdOucHash::Purge ( )
void XrdOucHash::Remove ( int  kent,
XrdOucHash_Item< T > *  hip,
XrdOucHash_Item< T > *  phip 
) [private]
T* XrdOucHash::Rep ( const char *  KeyVal,
T *  KeyData,
const int  LifeTime = 0,
XrdOucHash_Options  opt = Hash_default 
) [inline]
XrdOucHash_Item< T > * XrdOucHash::Search ( XrdOucHash_Item< T > *  hip,
const unsigned long  khash,
const char *  kval,
XrdOucHash_Item< T > **  phip = 0 
) [private]

Member Data Documentation

int XrdOucHash::hashload [private]
int XrdOucHash::hashmax [private]
int XrdOucHash::hashnum [private]

Referenced by XrdOucHash< dMoP >::Num().


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