#include <XrdOucRash.hh>
Public Member Functions | |
V * | Add (K KeyVal, V &KeyData, time_t LifeTime=0, XrdOucRash_Options opt=Rash_default) |
int | Del (K KeyVal) |
V * | Find (K KeyVal, time_t *KeyTime=0) |
int | Num () |
void | Purge () |
V * | Rep (K KeyVal, V &KeyData, const int LifeTime=0, XrdOucRash_Options opt=Rash_default) |
V * | Apply (int(*func)(K, V, void *), void *Arg) |
XrdOucRash () | |
~XrdOucRash () | |
Private Member Functions | |
V * | Apply (XrdOucRash_Tent< K, V > *tab, int(*func)(K, V, void *), void *Arg) |
XrdOucRash_Item< K, V > * | Lookup (K theKey, XrdOucRash_Tent< K, V > **tloc) |
void | Insert (K theKey, XrdOucRash_Item< K, V > *theItem) |
unsigned long long | key2ull (K theKey) |
Private Attributes | |
XrdOucRash_Tent< K, V > | rashTable [16] |
int | rashnum |
Definition at line 95 of file XrdOucRash.hh.
XrdOucRash< K, V >::XrdOucRash | ( | ) | [inline] |
Definition at line 149 of file XrdOucRash.hh.
XrdOucRash< K, V >::~XrdOucRash | ( | ) | [inline] |
Definition at line 150 of file XrdOucRash.hh.
V* XrdOucRash< K, V >::Add | ( | K | KeyVal, | |
V & | KeyData, | |||
time_t | LifeTime = 0 , |
|||
XrdOucRash_Options | opt = Rash_default | |||
) |
Referenced by XrdProofdProofServMgr::CleanupLostProofServ(), and XrdOucRash< Sockdescr, Sockid >::Rep().
int XrdOucRash< K, V >::Del | ( | K | KeyVal | ) |
V* XrdOucRash< K, V >::Find | ( | K | KeyVal, | |
time_t * | KeyTime = 0 | |||
) |
int XrdOucRash< K, V >::Num | ( | ) | [inline] |
void XrdOucRash< K, V >::Purge | ( | ) |
Referenced by XrdClientPSock::Disconnect(), and XrdOucRash< Sockdescr, Sockid >::~XrdOucRash().
V* XrdOucRash< K, V >::Rep | ( | K | KeyVal, | |
V & | KeyData, | |||
const int | LifeTime = 0 , |
|||
XrdOucRash_Options | opt = Rash_default | |||
) | [inline] |
Definition at line 133 of file XrdOucRash.hh.
Referenced by XrdClientPSock::BanSockDescr(), XrdClientPSock::EstablishParallelSock(), XrdClientPSock::TryConnect(), and XrdClientPSock::TryConnectParallelSock().
V* XrdOucRash< K, V >::Apply | ( | int(*)(K, V, void *) | func, | |
void * | Arg | |||
) | [inline] |
Definition at line 146 of file XrdOucRash.hh.
Referenced by XrdOucRash< Sockdescr, Sockid >::Apply(), and XrdClientPSock::Disconnect().
V* XrdOucRash< K, V >::Apply | ( | XrdOucRash_Tent< K, V > * | tab, | |
int(*)(K, V, void *) | func, | |||
void * | Arg | |||
) | [private] |
XrdOucRash_Item<K,V>* XrdOucRash< K, V >::Lookup | ( | K | theKey, | |
XrdOucRash_Tent< K, V > ** | tloc | |||
) | [private] |
void XrdOucRash< K, V >::Insert | ( | K | theKey, | |
XrdOucRash_Item< K, V > * | theItem | |||
) | [private] |
unsigned long long XrdOucRash< K, V >::key2ull | ( | K | theKey | ) | [private] |
XrdOucRash_Tent<K,V> XrdOucRash< K, V >::rashTable[16] [private] |
Definition at line 159 of file XrdOucRash.hh.
Referenced by XrdOucRash< Sockdescr, Sockid >::Apply().
int XrdOucRash< K, V >::rashnum [private] |
Definition at line 160 of file XrdOucRash.hh.
Referenced by XrdOucRash< Sockdescr, Sockid >::Num(), and XrdOucRash< Sockdescr, Sockid >::XrdOucRash().