DOM::ElementMappingCache

DOM::ElementMappingCache Class Reference

#include <dom_docimpl.h>

Classes

struct  ItemInfo
 

Public Member Functions

void add (const DOMString &id, ElementImpl *nd)
 
bool contains (const DOMString &id)
 
ItemInfoget (const DOMString &id)
 
void remove (const DOMString &id, ElementImpl *nd)
 
void set (const DOMString &id, ElementImpl *nd)
 

Detailed Description

A cache of element name (or id) to pointer

Definition at line 150 of file dom_docimpl.h.

Member Function Documentation

void ElementMappingCache::add ( const DOMString id,
ElementImpl *  nd 
)

Add a pointer as just one of candidates, not neccesserily the proper one.

Definition at line 319 of file dom_docimpl.cpp.

bool ElementMappingCache::contains ( const DOMString id)

Returns true if the item exists.

Definition at line 367 of file dom_docimpl.cpp.

ElementMappingCache::ItemInfo * ElementMappingCache::get ( const DOMString id)

Returns the information for the given ID.

Definition at line 375 of file dom_docimpl.cpp.

void ElementMappingCache::remove ( const DOMString id,
ElementImpl *  nd 
)

Remove the item; it must have already been added.

Definition at line 348 of file dom_docimpl.cpp.

void ElementMappingCache::set ( const DOMString id,
ElementImpl *  nd 
)

Set the pointer as the definite mapping; it must have already been added.

Definition at line 337 of file dom_docimpl.cpp.


The documentation for this class was generated from the following files:
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Thu Aug 6 2020 22:45:31 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.