63 virtual bool AddItem(
void *newdata,
void *olddata,
const char *key,
64 int hash=0,
bool replace=
false) = 0;
84 virtual bool Attach(
int tout,
bool isrw=
false) = 0;
120 virtual bool Create(CRZParms &parms) = 0;
129 virtual bool Export() = 0;
147 virtual bool DelItem(
void *data,
const char *key,
int hash=0) = 0;
153 virtual void Detach() = 0;
176 virtual bool Enumerate(
void *&jar,
char *&key,
void *&val) = 0;
229 virtual int Info(
const char *vname,
char *buff=0,
int blen=0) = 0;
246 virtual bool GetItem(
void *data,
const char *key,
int hash=0) = 0;
309 virtual bool Sync() = 0;
326 virtual bool Sync(
bool dosync,
bool syncdo=
false) = 0;
337 virtual bool Sync(
int synqsz) = 0;
virtual bool DelItem(void *data, const char *key, int hash=0)=0
Definition: XrdSsiShMat.hh:41
static XrdSsiShMat * New(NewParms &parms)
char * shmImpl
Definition: XrdSsiShMat.hh:360
virtual bool AddItem(void *newdata, void *olddata, const char *key, int hash=0, bool replace=false)=0
Definition: XrdSsiShMat.hh:99
int typeSz
Size of the type in bytes.
Definition: XrdSsiShMat.hh:280
int maxKeys
Maximum number of keys-value pairs expected in table.
Definition: XrdSsiShMat.hh:101
~CRZParms()
Definition: XrdSsiShMat.hh:117
char * shmType
Definition: XrdSsiShMat.hh:362
const char * impl
Implementation name.
Definition: XrdSsiShMat.hh:277
virtual bool Enumerate(void *&jar, char *&key, void *&val)=0
virtual void Detach()=0
Detach the map from the shared memory.
char * shmPath
Definition: XrdSsiShMat.hh:361
virtual bool Create(CRZParms &parms)=0
char rsvd[6]
Reserved for future options.
Definition: XrdSsiShMat.hh:112
virtual bool Attach(int tout, bool isrw=false)=0
int shmHash
Definition: XrdSsiShMat.hh:364
virtual int Info(const char *vname, char *buff=0, int blen=0)=0
int hashID
The hash being used (0 means the default)
Definition: XrdSsiShMat.hh:281
const char * typeID
The name of the type associated with the key.
Definition: XrdSsiShMat.hh:279
signed char multW
Definition: XrdSsiShMat.hh:104
Definition: XrdSsiShMat.hh:276
int maxKLen
The maximum acceptable key length.
Definition: XrdSsiShMat.hh:102
signed char reUse
Definition: XrdSsiShMat.hh:108
CRZParms()
Definition: XrdSsiShMat.hh:114
virtual bool GetItem(void *data, const char *key, int hash=0)=0
virtual bool Resize(CRZParms &parms)=0
XrdSsiShMat(NewParms &parms)
Constructor (arguments the same as for New())
Definition: XrdSsiShMat.hh:343
int mode
Filemode for the newly created file.
Definition: XrdSsiShMat.hh:103
int indexSz
Number of four byte hash table entries to create.
Definition: XrdSsiShMat.hh:100
virtual ~XrdSsiShMat()
Destructor. Warning, your destructor should call your own Detach()!
Definition: XrdSsiShMat.hh:353
const char * path
The path to the backing file for the table.
Definition: XrdSsiShMat.hh:278
int shmTypeSz
Definition: XrdSsiShMat.hh:363