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