xrootd
|
#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 = "abcdefghijklmnopqrstuvwxyz{|}~" |
static const int | yTSize = '~'-'0'+1 |
XrdCnsXref::XrdCnsXref | ( | const char * | Dflt = 0 , |
int | MTProt = 1 |
||
) |
char XrdCnsXref::Add | ( | const char * | Key, |
char | xref = 0 |
||
) |
References XrdOucHash< T >::Add(), availI(), c2i(), XrdOucHash< T >::Del(), XrdOucHash< T >::Find(), Hash_keep, isMT, XrdOucHash< T >::Rep(), xIndex, xMutex, xTable, and yTable.
Referenced by XrdCnsSsi::AddFile(), Default(), XrdCnsSsi::List(), XrdCnsSsi::Updt(), and XrdCnsInventory::Xref().
char* XrdCnsXref::Apply | ( | int(*)(const char *, char *, void *) | func, |
void * | Arg | ||
) | [inline] |
References XrdOucHash< T >::Apply(), and xTable.
Referenced by XrdCnsSsi::Updt().
char XrdCnsXref::Default | ( | const char * | Dflt = 0 | ) |
Referenced by XrdCnsSsi::AddFile(), XrdCnsInventory::XrdCnsInventory(), and XrdCnsXref().
char XrdCnsXref::Find | ( | const char * | xref | ) |
References XrdOucHash< T >::Find(), isMT, xMutex, and xTable.
Referenced by XrdCnsInventory::Xref().
char * XrdCnsXref::Key | ( | char | xref | ) |
References c2i(), isMT, xMutex, and yTable.
Referenced by XrdCnsInventory::Init(), and XrdCnsSsi::List().
int XrdCnsXref::availIdx [private] |
Referenced by availI(), and XrdCnsXref().
int XrdCnsXref::isMT [private] |
Referenced by Add(), Find(), Key(), and XrdCnsXref().
char * XrdCnsXref::xIndex = "abcdefghijklmnopqrstuvwxyz{|}~" [static, private] |
XrdSysMutex XrdCnsXref::xMutex [private] |
XrdOucHash<char> XrdCnsXref::xTable [private] |
char* XrdCnsXref::yTable[yTSize] [private] |
Referenced by Add(), availI(), Key(), XrdCnsXref(), and ~XrdCnsXref().
const int XrdCnsXref::yTSize = '~'-'0'+1 [static, private] |
Referenced by availI(), and ~XrdCnsXref().