#include <XrdCnsXref.hh>
Public Member Functions | |
char | Add (const char *Key, char xref=0) |
char * | Apply (int(*func)(const char *, char *, void *), void *Arg) |
char | Default (const char *Dflt=0) |
char * | Key (char xref) |
char | Find (const char *xref) |
XrdCnsXref (const char *Dflt=0, int MTProt=1) | |
~XrdCnsXref () | |
Private Member Functions | |
int | availI () |
int | c2i (char xCode) |
Private Attributes | |
XrdSysMutex | xMutex |
XrdOucHash< char > | xTable |
char * | yTable [yTSize] |
int | availIdx |
int | isMT |
Static Private Attributes | |
static char * | xIndex |
static const int | yTSize = '~'-'0'+1 |
Definition at line 18 of file XrdCnsXref.hh.
XrdCnsXref::XrdCnsXref | ( | const char * | Dflt = 0 , |
|
int | MTProt = 1 | |||
) |
XrdCnsXref::~XrdCnsXref | ( | ) |
char XrdCnsXref::Add | ( | const char * | Key, | |
char | xref = 0 | |||
) |
Definition at line 52 of file XrdCnsXref.cc.
References XrdOucHash< T >::Add(), availI(), c2i(), XrdOucHash< T >::Del(), XrdOucHash< T >::Find(), free(), Hash_keep, i, isMT, j, XrdOucHash< T >::Rep(), xIndex, xMutex, xTable, and yTable.
Referenced by XrdCnsSsi::AddFile(), Default(), and XrdCnsInventory::Xref().
char* XrdCnsXref::Apply | ( | int(*)(const char *, char *, void *) | func, | |
void * | Arg | |||
) | [inline] |
char XrdCnsXref::Default | ( | const char * | Dflt = 0 |
) |
Definition at line 85 of file XrdCnsXref.cc.
Referenced by XrdCnsSsi::AddFile(), XrdCnsInventory::XrdCnsInventory(), and XrdCnsXref().
char * XrdCnsXref::Key | ( | char | xref | ) |
Definition at line 94 of file XrdCnsXref.cc.
References c2i(), i, isMT, xMutex, and yTable.
Referenced by XrdCnsInventory::Init().
char XrdCnsXref::Find | ( | const char * | xref | ) |
Definition at line 107 of file XrdCnsXref.cc.
References XrdOucHash< T >::Find(), isMT, xMutex, and xTable.
Referenced by XrdCnsInventory::Xref().
int XrdCnsXref::availI | ( | ) | [private] |
int XrdCnsXref::c2i | ( | char | xCode | ) | [private] |
XrdSysMutex XrdCnsXref::xMutex [private] |
XrdOucHash<char> XrdCnsXref::xTable [private] |
char * XrdCnsXref::xIndex [static, private] |
const int XrdCnsXref::yTSize = '~'-'0'+1 [static, private] |
char* XrdCnsXref::yTable[yTSize] [private] |
Definition at line 46 of file XrdCnsXref.hh.
Referenced by Add(), availI(), Key(), XrdCnsXref(), and ~XrdCnsXref().
int XrdCnsXref::availIdx [private] |
int XrdCnsXref::isMT [private] |