xrootd
Public Member Functions | Private Member Functions | Private Attributes | Static Private Attributes | List of all members
XrdCnsXref Class Reference

#include <XrdCnsXref.hh>

Collaboration diagram for XrdCnsXref:
Collaboration graph
[legend]

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
 

Constructor & Destructor Documentation

XrdCnsXref::XrdCnsXref ( const char *  Dflt = 0,
int  MTProt = 1 
)

References availIdx, Default(), isMT, and yTable.

XrdCnsXref::~XrdCnsXref ( )

References yTable, and yTSize.

Member Function Documentation

char XrdCnsXref::Add ( const char *  Key,
char  xref = 0 
)
char* XrdCnsXref::Apply ( int(*)(const char *, char *, void *)  func,
void *  Arg 
)
inline

References XrdOucHash< T >::Apply(), and xTable.

Referenced by XrdCnsSsi::Updt().

int XrdCnsXref::availI ( )
private

References availIdx, yTable, and yTSize.

Referenced by Add().

int XrdCnsXref::c2i ( char  xCode)
private

Referenced by Add(), and Key().

char XrdCnsXref::Default ( const char *  Dflt = 0)
char XrdCnsXref::Find ( const char *  xref)
char * XrdCnsXref::Key ( char  xref)

References c2i(), isMT, xMutex, and yTable.

Referenced by XrdCnsInventory::Init(), and XrdCnsSsi::List().

Member Data Documentation

int XrdCnsXref::availIdx
private

Referenced by availI(), and XrdCnsXref().

int XrdCnsXref::isMT
private

Referenced by Add(), Find(), Key(), and XrdCnsXref().

char * XrdCnsXref::xIndex
staticprivate
Initial value:
= (char *)"0123456789:;<=>?@"
"ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`"
"abcdefghijklmnopqrstuvwxyz{|}~"

Referenced by Add(), and Default().

XrdSysMutex XrdCnsXref::xMutex
private

Referenced by Add(), Find(), and Key().

XrdOucHash<char> XrdCnsXref::xTable
private

Referenced by Add(), Apply(), and Find().

char* XrdCnsXref::yTable[yTSize]
private

Referenced by Add(), availI(), Key(), XrdCnsXref(), and ~XrdCnsXref().

const int XrdCnsXref::yTSize = '~'-'0'+1
staticprivate

Referenced by availI(), and ~XrdCnsXref().


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