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