16 #if !defined(ATTRIBUTESIMPL_HEADER_GUARD_1357924680)
17 #define ATTRIBUTESIMPL_HEADER_GUARD_1357924680
30 #include <xercesc/sax2/Attributes.hpp>
34 XALAN_CPP_NAMESPACE_BEGIN
73 getURI(
const unsigned int index)
const;
76 getLocalName(
const unsigned int index)
const;
79 getQName(
const unsigned int index)
const;
82 getType(
const unsigned int index)
const;
85 getValue(
const unsigned int index)
const;
89 const XMLCh*
const uri,
90 const XMLCh*
const localName)
const;
93 getIndex(
const XMLCh*
const qname)
const;
96 getType(
const XMLCh*
const qname)
const;
100 const XMLCh*
const uri,
101 const XMLCh*
const localName)
const;
104 getValue(
const XMLCh*
const qname)
const;
108 const XMLCh*
const uri,
109 const XMLCh*
const localName)
const;
114 return m_attributesVector.getMemoryManager();
139 const XMLCh theDummy = 0;
141 addAttribute(&theDummy, &theDummy, qname, type, value);
157 const XMLCh* localName,
168 removeAttribute(
const XMLCh* qname);
179 m_attributesVector.swap(theOther.m_attributesVector);
191 m_attributesVector.reserve(theCount);
197 #if defined(XALAN_NEEDS_EXPLICIT_TEMPLATE_INSTANTIATION)
198 struct NameCompareFunctor
200 NameCompareFunctor(
const XMLCh* theQName) :
210 const XMLCh*
const m_qname;
213 struct URIAndLocalNameCompareFunctor
215 URIAndLocalNameCompareFunctor(
217 const XMLCh* theLocalName) :
219 m_localName(theLocalName)
228 const XMLCh*
const m_uri;
229 const XMLCh*
const m_localName;
242 eDefaultVectorSize = 5
250 const XMLCh* uri = 0,
251 const XMLCh* localName = 0);
255 deleteEntries(AttributesVectorType& theVector);
257 AttributesVectorType m_attributesVector;
259 AttributesVectorType m_cacheVector;
264 XALAN_CPP_NAMESPACE_END
268 #endif // ATTRIBUTESIMPL_HEADER_GUARD_1357924680
bool operator==(const XalanVector< Type > &theLHS, const XalanVector< Type > &theRHS)
Definition: XalanVector.hpp:1111
XALAN_CPP_NAMESPACE_BEGIN typedef XERCES_CPP_NAMESPACE_QUALIFIER MemoryManager MemoryManagerType
Definition: XalanMemoryManagement.hpp:39
void addAttribute(const XMLCh *qname, const XMLCh *type, const XMLCh *value)
Adds an attribute to the attribute list.
Definition: AttributesImpl.hpp:134
void clear(XalanDOMString &theString)
Remove all elements from target string.
Definition: DOMStringHelper.hpp:2291
#define XALAN_DEFAULT_MEMMGR
Definition: XalanMemoryManagement.hpp:402
MemoryManagerType & getMemoryManager()
Definition: AttributesImpl.hpp:112
Definition: AttributeVectorEntryExtended.hpp:34
void swap(AttributesImpl &theOther)
Swap the contents of two instances.
Definition: AttributesImpl.hpp:177
XalanVector< AttributeVectorEntryExtended * > AttributesVectorType
Definition: AttributesImpl.hpp:195
Definition: AttributesImpl.hpp:46
XERCES_CPP_NAMESPACE_QUALIFIER Attributes AttributesType
Definition: AttributesImpl.hpp:38
void reserve(unsigned int theCount)
Reserve room for the given number of attributes.
Definition: AttributesImpl.hpp:189