Xerces-C++: Hash2KeysSetOf.hpp Source File (original) (raw)

1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

16

17

18

19

20

21

22#if !defined(XERCESC_INCLUDE_GUARD_HASH2KEYSSETOF_HPP)

23#define XERCESC_INCLUDE_GUARD_HASH2KEYSSETOF_HPP

24

25

26#include <xercesc/util/Hashers.hpp>

31

33

34

35

36

37

38template

40

41

42

43

44

51

52

53template

55{

56public:

57

58

59

60

64

67 const THasher& hasher,

69

71

72

73

74

75

77 bool containsKey(const void* const key1, const int key2) const;

78 void removeKey(const void* const key1, const int key2);

81

82

83

84

87

88

89

90

91 void put(const void* key1, int key2);

93

94private :

95

96

97

99

100

101private:

102

103

104

107

108

109

110

113 void initialize(const XMLSize_t modulus);

114 void rehash();

115

116

117

118

119

120

121

122

123

124

125

126

127

128

129

130

131

132

133

139 THasher fHasher;

140};

141

142

143

144

145

146

147

148template

150{

151public :

152

153

154

156 , const bool adopt = false

159

160

161

162

163

166

167

168

169

172

173private :

174

175

176

179

180

181

182

183 void findNext();

184

185

186

187

188

189

190

191

192

193

194

195

196

197

198

199

200

201

202

203

204

205

206

207

208

209 bool fAdopted;

214 const void* fLockPrimaryKey;

215};

216

218

219#if !defined(XERCES_TMPLSINC)

220#include <xercesc/util/Hash2KeysSetOf.c>

221#endif

222

223#endif

#define XERCES_CPP_NAMESPACE_BEGIN

Definition XercesDefs.hpp:112

#define XERCES_CPP_NAMESPACE_END

Definition XercesDefs.hpp:113

size_t XMLSize_t

Definition Xerces_autoconf_config.hpp:112

Definition Hash2KeysSetOf.hpp:150

bool hasMoreElements() const

void nextElementKey(const void *&, int &)

virtual ~Hash2KeysSetOfEnumerator()

Hash2KeysSetOfEnumerator(Hash2KeysSetOf< THasher > *const toEnum, const bool adopt=false, MemoryManager *const manager=XMLPlatformUtils::fgMemoryManager)

void setPrimaryKey(const void *key)

Definition Hash2KeysSetOf.hpp:55

XMLSize_t getHashModulus() const

bool containsKey(const void *const key1, const int key2) const

void put(const void *key1, int key2)

bool putIfNotPresent(const void *key1, int key2)

MemoryManager * getMemoryManager() const

void removeKey(const void *const key1)

void removeKey(const void *const key1, const int key2)

Hash2KeysSetOf(const XMLSize_t modulus, MemoryManager *const manager=XMLPlatformUtils::fgMemoryManager)

Hash2KeysSetOf(const XMLSize_t modulus, const THasher &hasher, MemoryManager *const manager=XMLPlatformUtils::fgMemoryManager)

Configurable memory manager.

Definition MemoryManager.hpp:40

static MemoryManager * fgMemoryManager

The configurable memory manager.

Definition PlatformUtils.hpp:121

This class makes it possible to override the C++ memory management by adding new/delete operators to ...

Definition XMemory.hpp:41

Definition Hash2KeysSetOf.hpp:46

int fKey2

Definition Hash2KeysSetOf.hpp:49

const void * fKey1

Definition Hash2KeysSetOf.hpp:48

Hash2KeysSetBucketElem * fNext

Definition Hash2KeysSetOf.hpp:47