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) |
ItemInfo * | get (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
◆ add()
void ElementMappingCache::add | ( | const DOMString & | id, |
ElementImpl * | nd | ||
) |
Add a pointer as just one of candidates, not neccesserily the proper one.
Definition at line 317 of file dom_docimpl.cpp.
◆ contains()
bool ElementMappingCache::contains | ( | const DOMString & | id | ) |
Returns true if the item exists.
Definition at line 365 of file dom_docimpl.cpp.
◆ get()
ElementMappingCache::ItemInfo * ElementMappingCache::get | ( | const DOMString & | id | ) |
Returns the information for the given ID.
Definition at line 373 of file dom_docimpl.cpp.
◆ remove()
void ElementMappingCache::remove | ( | const DOMString & | id, |
ElementImpl * | nd | ||
) |
Remove the item; it must have already been added.
Definition at line 346 of file dom_docimpl.cpp.
◆ set()
void ElementMappingCache::set | ( | const DOMString & | id, |
ElementImpl * | nd | ||
) |
Set the pointer as the definite mapping; it must have already been added.
Definition at line 335 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-2023 The KDE developers.
Generated on Mon Dec 11 2023 04:06:52 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2023 The KDE developers.
Generated on Mon Dec 11 2023 04:06:52 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.