|
xrootd
|
#include <XrdOucHash.hh>

Public Member Functions | |
| T * | Add (const char *KeyVal, T *KeyData, const int LifeTime=0, XrdOucHash_Options opt=Hash_default) |
| int | Del (const char *KeyVal, XrdOucHash_Options opt=Hash_default) |
| T * | Find (const char *KeyVal, time_t *KeyTime=0) |
| int | Num () |
| void | Purge () |
| T * | Rep (const char *KeyVal, T *KeyData, const int LifeTime=0, XrdOucHash_Options opt=Hash_default) |
| T * | Apply (int(*func)(const char *, T *, void *), void *Arg) |
| XrdOucHash (int psize=89, int size=144, int load=80) | |
| ~XrdOucHash () | |
Private Member Functions | |
| void | Remove (int kent, XrdOucHash_Item< T > *hip, XrdOucHash_Item< T > *phip) |
| XrdOucHash_Item< T > * | Search (XrdOucHash_Item< T > *hip, const unsigned long khash, const char *kval, XrdOucHash_Item< T > **phip=0) |
| unsigned long | HashVal (const char *KeyVal) |
| void | Expand () |
Private Attributes | |
| XrdOucHash_Item< T > ** | hashtable |
| int | prevtablesize |
| int | hashtablesize |
| int | hashnum |
| int | hashmax |
| int | hashload |
| XrdOucHash::XrdOucHash | ( | int | psize = 89, |
| int | size = 144, |
||
| int | load = 80 |
||
| ) |
| XrdOucHash::~XrdOucHash | ( | ) | [inline] |
| T * XrdOucHash::Add | ( | const char * | KeyVal, |
| T * | KeyData, | ||
| const int | LifeTime = 0, |
||
| XrdOucHash_Options | opt = Hash_default |
||
| ) |
References XrdOucHashVal(), Hash_count, XrdOucHash_Item::Update(), XrdOucHash_Item::Count(), XrdOucHash_Item::Time(), Hash_replace, and XrdOucHash_Item::Data().
Referenced by XrdAccConfig::ConfigDBrec(), XrdAccGroups::AddName(), XrdAccGroups::Groups(), XrdAccGroups::NetGroups(), XrdClientConn::CheckHostDomain(), XrdCmsPrepare::Add(), XrdCmsPrepare::Reset(), XrdCnsSsi::AddDel(), XrdCnsSsi::AddFile(), XrdCnsXref::Add(), XrdFrmFileset::Screen(), XrdFrmFiles::Complain(), XrdFrmFiles::Process(), XrdNetSecurity::AddHost(), XrdNetSecurity::hostOK(), XrdOfsEvr::Work4Event(), XrdOfsEvr::eventStage(), XrdOssMio::Map(), XrdOssSys::Stage_QT(), XrdOucHash< dMoP >::Rep(), XrdSecgsiGMAPInit(), XrdSecsssID::Register(), XrdSutCache::Rehash(), XrdSutPFile::UpdateHashTable(), and XrdXrootdFileLock1::Lock().
| T * XrdOucHash::Apply | ( | int(*)(const char *, T *, void *) | func, |
| void * | Arg | ||
| ) |
References XrdOucHash_Item::Next(), XrdOucHash_Item::Time(), XrdOucHash_Item::Key(), XrdOucHash_Item::Data(), and XrdOucHash_Item::SetNext().
Referenced by XrdAccGroups::NetGroups(), XrdClientConnectionMgr::ShutDown(), XrdClientConnectionMgr::GarbageCollect(), XrdClientConnectionMgr::Connect(), XrdCmsPrepare::Scrub(), XrdCnsSsiApplyD(), XrdCnsSsi::Updt(), XrdCnsXref::Apply(), XrdOfsEvr::flushEvents(), XrdOssSys::Stage_QT(), and XrdSecgsiGMAPFun().
| int XrdOucHash::Del | ( | const char * | KeyVal, |
| XrdOucHash_Options | opt = Hash_default |
||
| ) |
References XrdOucHashVal(), XrdOucHash_Item::Count(), and XrdOucHash_Item::Update().
Referenced by XrdClientConnectionMgr::Connect(), XrdCmsPrepare::Gone(), XrdCnsSsi::ApplyLogRec(), XrdCnsSsi::AddDel(), XrdCnsXref::Add(), XrdOfsEvr::flushEvents(), XrdOssMio::Reclaim(), XrdSecsssID::Register(), and XrdXrootdFileLock1::Unlock().
| void XrdOucHash::Expand | ( | ) | [private] |
References XrdOucHash_Item::Next(), XrdOucHash_Item::Hash(), and XrdOucHash_Item::SetNext().
| T * XrdOucHash::Find | ( | const char * | KeyVal, |
| time_t * | KeyTime = 0 |
||
| ) |
References XrdOucHashVal(), XrdOucHash_Item::Time(), and XrdOucHash_Item::Data().
Referenced by XrdAccAccess::Access(), XrdAccConfig::ConfigDBrec(), XrdAccGroups::AddName(), XrdAccGroups::FindName(), XrdAccGroups::Groups(), XrdAccGroups::NetGroups(), XrdAccGroups::addGroup(), XrdClientConn::CheckHostDomain(), XrdClientConn::DoLogin(), XrdClientConnectionMgr::Connect(), XrdClientConnectionMgr::GetPhyConnection(), XrdCmsPrepare::Exists(), XrdCnsSsi::AddDel(), XrdCnsSsi::AddFile(), XrdCnsSsi::AddSize(), XrdCnsXref::Add(), XrdCnsXref::Find(), XrdFfsFsinfo_cache_search(), XrdFrmFiles::Process(), XrdNetSecurity::Authorize(), XrdOfsEvr::Work4Event(), XrdOfsEvr::eventStage(), XrdOssMio::Map(), XrdOucEnv::GetInt(), XrdOucEnv::GetPtr(), XrdOucEnv::Get(), XrdSecgsiGMAPFun(), XrdSecsssID::Find(), XrdSutCache::Get(), XrdSutCache::Remove(), XrdSutPFile::UpdateCount(), XrdSutPFile::ReadEntry(), XrdSutPFile::RemoveEntry(), XrdXrootdFileLock1::Lock(), XrdXrootdFileLock1::numLocks(), and XrdXrootdFileLock1::Unlock().
| unsigned long XrdOucHash::HashVal | ( | const char * | KeyVal | ) | [private] |
| int XrdOucHash::Num | ( | ) | [inline] |
| void XrdOucHash::Purge | ( | ) |
References XrdOucHash_Item::Next().
Referenced by XrdAccGroups::PurgeCache(), XrdClientConn::DelSessionIDRepo(), XrdClientConnectionMgr::ShutDown(), XrdCmsPrepare::Reset(), XrdFrmFiles::Get(), XrdFrmFileset::Purge(), XrdOucHash< dMoP >::~XrdOucHash(), XrdSutCache::Rehash(), and XrdSutPFile::UpdateHashTable().
| void XrdOucHash::Remove | ( | int | kent, |
| XrdOucHash_Item< T > * | hip, | ||
| XrdOucHash_Item< T > * | phip | ||
| ) | [private] |
References XrdOucHash_Item::SetNext(), and XrdOucHash_Item::Next().
| T* XrdOucHash::Rep | ( | const char * | KeyVal, |
| T * | KeyData, | ||
| const int | LifeTime = 0, |
||
| XrdOucHash_Options | opt = Hash_default |
||
| ) | [inline] |
| XrdOucHash_Item< T > * XrdOucHash::Search | ( | XrdOucHash_Item< T > * | hip, |
| const unsigned long | khash, | ||
| const char * | kval, | ||
| XrdOucHash_Item< T > ** | phip = 0 |
||
| ) | [private] |
References XrdOucHash_Item::Same(), and XrdOucHash_Item::Next().
int XrdOucHash::hashload [private] |
int XrdOucHash::hashmax [private] |
int XrdOucHash::hashnum [private] |
Referenced by XrdOucHash< dMoP >::Num().
XrdOucHash_Item<T>** XrdOucHash::hashtable [private] |
Referenced by XrdOucHash< dMoP >::~XrdOucHash().
int XrdOucHash::hashtablesize [private] |
int XrdOucHash::prevtablesize [private] |
1.7.5