Search for usage in LXR

DOM::ElementMappingCache Class Reference

#include <dom_docimpl.h>


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 317 of file dom_docimpl.cpp.

bool ElementMappingCache::contains ( const DOMString id)

Returns true if the item exists.

Definition at line 365 of file dom_docimpl.cpp.

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

Returns the information for the given ID.

Definition at line 373 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 346 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 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-2021 The KDE developers.
Generated on Thu Apr 22 2021 22:46:34 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.