Xalan-C++ API Reference 1.12.0
xalanc::AttributeListImpl Class Reference

#include <xalanc/PlatformSupport/AttributeListImpl.hpp>

Inheritance diagram for xalanc::AttributeListImpl:
[legend]
Collaboration diagram for xalanc::AttributeListImpl:
[legend]

Public Types

typedef XalanVector< AttributeVectorEntry * > AttributeVectorType
 

Public Member Functions

 AttributeListImpl (MemoryManager &theManager)
 
virtual ~AttributeListImpl ()
 
 AttributeListImpl (const AttributeListImpl &theSource, MemoryManager &theManager)
 
 AttributeListImpl (const AttributeListType &theSource, MemoryManager &theManager)
 
AttributeListImploperator= (const AttributeListImpl &theRHS)
 
AttributeListImploperator= (const AttributeListType &theRHS)
 
MemoryManager & getMemoryManager ()
 
virtual XalanSize_t getLength () const
 
virtual const XMLCh * getName (const XalanSize_t index) const
 
virtual const XMLCh * getType (const XalanSize_t index) const
 
virtual const XMLCh * getValue (const XalanSize_t index) const
 
virtual const XMLCh * getType (const XMLCh *const name) const
 
virtual const XMLCh * getValue (const XMLCh *const name) const
 
virtual const XMLCh * getValue (const char *const name) const
 
virtual void clear ()
 Remove all attributes from the list.
 
virtual bool addAttribute (const XMLCh *name, const XMLCh *type, const XMLCh *value)
 Adds an attribute to the attribute list.
 
virtual bool removeAttribute (const XMLCh *name)
 Removes an attribute from the attribute list.
 
void swap (AttributeListImpl &theOther)
 Swap the contents of two instances.
 
void reserve (XalanSize_t theCount)
 Reserve room for the given number of attributes.
 

Detailed Description

Definition at line 49 of file AttributeListImpl.hpp.

Member Typedef Documentation

◆ AttributeVectorType

Constructor & Destructor Documentation

◆ AttributeListImpl() [1/3]

xalanc::AttributeListImpl::AttributeListImpl ( MemoryManager & theManager)
explicit

◆ ~AttributeListImpl()

virtual xalanc::AttributeListImpl::~AttributeListImpl ( )
virtual

◆ AttributeListImpl() [2/3]

xalanc::AttributeListImpl::AttributeListImpl ( const AttributeListImpl & theSource,
MemoryManager & theManager )

References AttributeListImpl().

◆ AttributeListImpl() [3/3]

xalanc::AttributeListImpl::AttributeListImpl ( const AttributeListType & theSource,
MemoryManager & theManager )

References AttributeListImpl().

Member Function Documentation

◆ addAttribute()

virtual bool xalanc::AttributeListImpl::addAttribute ( const XMLCh * name,
const XMLCh * type,
const XMLCh * value )
virtual

Adds an attribute to the attribute list.

Parameters
nameattribute name
typeattribute type, "CDATA," for example
valueattribute value

◆ clear()

virtual void xalanc::AttributeListImpl::clear ( )
virtual

Remove all attributes from the list.

◆ getLength()

virtual XalanSize_t xalanc::AttributeListImpl::getLength ( ) const
virtual

◆ getMemoryManager()

MemoryManager & xalanc::AttributeListImpl::getMemoryManager ( )
inline

Definition at line 72 of file AttributeListImpl.hpp.

◆ getName()

virtual const XMLCh * xalanc::AttributeListImpl::getName ( const XalanSize_t index) const
virtual

◆ getType() [1/2]

virtual const XMLCh * xalanc::AttributeListImpl::getType ( const XalanSize_t index) const
virtual

◆ getType() [2/2]

virtual const XMLCh * xalanc::AttributeListImpl::getType ( const XMLCh *const name) const
virtual

◆ getValue() [1/3]

virtual const XMLCh * xalanc::AttributeListImpl::getValue ( const char *const name) const
virtual

◆ getValue() [2/3]

virtual const XMLCh * xalanc::AttributeListImpl::getValue ( const XalanSize_t index) const
virtual

◆ getValue() [3/3]

virtual const XMLCh * xalanc::AttributeListImpl::getValue ( const XMLCh *const name) const
virtual

◆ operator=() [1/2]

AttributeListImpl & xalanc::AttributeListImpl::operator= ( const AttributeListImpl & theRHS)

References AttributeListImpl().

◆ operator=() [2/2]

AttributeListImpl & xalanc::AttributeListImpl::operator= ( const AttributeListType & theRHS)

◆ removeAttribute()

virtual bool xalanc::AttributeListImpl::removeAttribute ( const XMLCh * name)
virtual

Removes an attribute from the attribute list.

Parameters
nameattribute name

◆ reserve()

void xalanc::AttributeListImpl::reserve ( XalanSize_t theCount)
inline

Reserve room for the given number of attributes.

Parameters
theCountThe number to reserve

Definition at line 146 of file AttributeListImpl.hpp.

◆ swap()

void xalanc::AttributeListImpl::swap ( AttributeListImpl & theOther)
inline

Swap the contents of two instances.

This must never throw an exception.

Parameters
thOtherThe instance with which to swap.

Definition at line 134 of file AttributeListImpl.hpp.

References AttributeListImpl().


The documentation for this class was generated from the following file: