208bool Add(
const char *key, T &val);
224bool Del(
const char *key, T *valP=0);
290bool Get(
const char *key, T &val);
326int Info(
const char *vname,
char *buff=0,
int blen=0);
342bool Rep(
const char *key, T &val, T *valP=0);
404 const char *implName=0)
406 implID((implName ? strdup(implName) : 0)) {}
430#include "XrdSsi/XrdSsiShMap.icc"
#define access(a, b)
Definition XrdPosix.hh:39
Definition XrdSsiShMat.hh:42
Definition XrdSsiShMap.hh:126
void Detach()
Detach the map from the shared memory.
bool Del(const char *key, T *valP=0)
ShMap_Hash_t hashFunc
Definition XrdSsiShMap.hh:420
bool Get(const char *key, T &val)
bool Attach(const char *path, ShMap_Access access, int tmo=-1)
char * typeID
Definition XrdSsiShMap.hh:421
~ShMap()
Destructor.
Definition XrdSsiShMap.hh:412
ShMap(const char *typeName, ShMap_Hash_t hFunc=0, const char *implName=0)
Definition XrdSsiShMap.hh:403
bool Enumerate(void *&jar, char *&key, T *&val)
XrdSsiShMat * shMat
Definition XrdSsiShMap.hh:419
bool Rep(const char *key, T &val, T *valP=0)
bool Sync(SyncOpt dosync, int syncqsz=256)
bool Create(const char *path, ShMap_Parms &parms)
bool Enumerate(void *&jar)
char * implID
Definition XrdSsiShMap.hh:422
bool Exists(const char *key)
int Info(const char *vname, char *buff=0, int blen=0)
bool Add(const char *key, T &val)
bool Resize(ShMap_Parms *parms=0)
Definition XrdSsiShMap.hh:44
ShMap_Access
The action parameter that must be passed to the Attach() method.
Definition XrdSsiShMap.hh:50
@ ReadOnly
reading
Definition XrdSsiShMap.hh:50
@ ReadWrite
reading & writing
Definition XrdSsiShMap.hh:51
int(* ShMap_Hash_t)(const char *key)
Definition XrdSsiShMap.hh:122
SyncOpt
Options valid for the Sync() method.
Definition XrdSsiShMap.hh:110
@ SyncNow
Definition XrdSsiShMap.hh:110
@ SyncQSz
Definition XrdSsiShMap.hh:110
@ SyncOn
Definition XrdSsiShMap.hh:110
@ SyncAll
Definition XrdSsiShMap.hh:110
@ SyncOff
Definition XrdSsiShMap.hh:110
static const int ShMap_4Resize
Definition XrdSsiShMap.hh:60
Definition XrdSsiShMap.hh:63
static const int MultW
Bit options that may be or'd into he options member above.
Definition XrdSsiShMap.hh:75
int maxKeys
Maximum expected keys.
Definition XrdSsiShMap.hh:65
int mode
Mode setting for the newly created file.
Definition XrdSsiShMap.hh:66
int maxKeyLen
Maximum key length.
Definition XrdSsiShMap.hh:64
int reserved
Reserved for future ABI complaint use.
Definition XrdSsiShMap.hh:68
~ShMap_Parms()
Destructor.
Definition XrdSsiShMap.hh:103
static const int ReUse
Reuse map storage.
Definition XrdSsiShMap.hh:79
static const int ForResize
Constructor suitable for Resize() (use ShMap_Parms(ForResize)).
Definition XrdSsiShMap.hh:94
static const int noReUse
Opposite (default for Create)
Definition XrdSsiShMap.hh:81
static const int noMultW
Opposite (default for Create)
Definition XrdSsiShMap.hh:77
int options
Bit or'd ShMop_xxxx options below.
Definition XrdSsiShMap.hh:67
ShMap_Parms(int rsz)
Definition XrdSsiShMap.hh:96
int indexSize
Number of hash table entries to create.
Definition XrdSsiShMap.hh:63
ShMap_Parms()
Constructor suitable for Create()
Definition XrdSsiShMap.hh:87