#include <XrdOfsHandle.hh>
Public Member Functions | |
void | Add (XrdOfsHandle *hP) |
XrdOfsHandle * | Find (XrdOfsHanKey &Key) |
int | Remove (XrdOfsHandle *rip) |
XrdOfsHanTab (int psize=987, int size=1597) | |
~XrdOfsHanTab () | |
Private Member Functions | |
void | Expand () |
Private Attributes | |
XrdOfsHandle ** | nashtable |
int | prevtablesize |
int | nashtablesize |
int | nashnum |
int | Threshold |
Static Private Attributes | |
static const int | LoadMax = 80 |
Definition at line 68 of file XrdOfsHandle.hh.
XrdOfsHanTab::XrdOfsHanTab | ( | int | psize = 987 , |
|
int | size = 1597 | |||
) |
Definition at line 550 of file XrdOfsHandle.cc.
References LoadMax, malloc(), nashnum, nashtable, nashtablesize, prevtablesize, size_t, and Threshold.
XrdOfsHanTab::~XrdOfsHanTab | ( | ) | [inline] |
Definition at line 82 of file XrdOfsHandle.hh.
void XrdOfsHanTab::Add | ( | XrdOfsHandle * | hP | ) |
Definition at line 565 of file XrdOfsHandle.cc.
References Expand(), XrdOfsHanKey::Hash, nashnum, nashtable, nashtablesize, XrdOfsHandle::Next, XrdOfsHandle::Path, and Threshold.
Referenced by XrdOfsHandle::Alloc().
XrdOfsHandle * XrdOfsHanTab::Find | ( | XrdOfsHanKey & | Key | ) |
Definition at line 629 of file XrdOfsHandle.cc.
References XrdOfsHanKey::Hash, nashtable, nashtablesize, XrdOfsHandle::Next, and XrdOfsHandle::Path.
Referenced by XrdOfsHandle::Alloc(), and XrdOfsHandle::Hide().
int XrdOfsHanTab::Remove | ( | XrdOfsHandle * | rip | ) |
Definition at line 649 of file XrdOfsHandle.cc.
References XrdOfsHanKey::Hash, nashnum, nashtable, nashtablesize, XrdOfsHandle::Next, and XrdOfsHandle::Path.
Referenced by XrdOfsHandle::Retire().
void XrdOfsHanTab::Expand | ( | ) | [private] |
Definition at line 584 of file XrdOfsHandle.cc.
References free(), XrdOfsHanKey::Hash, i, LoadMax, malloc(), nashtable, nashtablesize, XrdOfsHandle::Next, XrdOfsHandle::Path, prevtablesize, size_t, and Threshold.
Referenced by Add().
const int XrdOfsHanTab::LoadMax = 80 [static, private] |
XrdOfsHandle** XrdOfsHanTab::nashtable [private] |
Definition at line 90 of file XrdOfsHandle.hh.
Referenced by Add(), Expand(), Find(), Remove(), and XrdOfsHanTab().
int XrdOfsHanTab::prevtablesize [private] |
int XrdOfsHanTab::nashtablesize [private] |
Definition at line 92 of file XrdOfsHandle.hh.
Referenced by Add(), Expand(), Find(), Remove(), and XrdOfsHanTab().
int XrdOfsHanTab::nashnum [private] |
int XrdOfsHanTab::Threshold [private] |