Xerces-C++: XSNamedMap.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_XSNAMEDMAP_HPP)

23#define XERCESC_INCLUDE_GUARD_XSNAMEDMAP_HPP

24

25

27#include <xercesc/util/RefHash2KeysTableOf.hpp>

28#include <xercesc/util/RefVectorOf.hpp>

29

31

32class XMLStringPool;

33

34

35

36

37

38

39

41{

42public:

43

44

45

48

51 XMLStringPool* uriStringPool,

52 const bool adoptElems,

54 );

56

60

62

63

64

65

68

75

87

100 const XMLCh *localName);

101

103

104

110

111

112private :

113

114

115

118

119

120

121

122

123

125 XMLStringPool* fURIStringPool;

126 RefVectorOf* fVector;

127 RefHash2KeysTableOf* fHash;

128};

129

130

131

133

134#if !defined(XERCES_TMPLSINC)

135#include <xercesc/framework/psvi/XSNamedMap.c>

136#endif

137

138#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

char16_t XMLCh

Definition Xerces_autoconf_config.hpp:120

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 XSNamedMap.hpp:41

TVal * item(XMLSize_t index)

Returns the indexth item in the collection.

XMLSize_t getLength() const

The number of XSObjects in the XSObjectList.

const TVal * item(XMLSize_t index) const

void addElement(TVal *const toAdd, const XMLCh *key1, const XMLCh *key2)

methods needed by implementation

XSNamedMap(const XMLSize_t maxElems, const XMLSize_t modulus, XMLStringPool *uriStringPool, const bool adoptElems, MemoryManager *const manager=XMLPlatformUtils::fgMemoryManager)

TVal * itemByName(const XMLCh *compNamespace, const XMLCh *localName)

Retrieves a component specified by local name and namespace URI.