A class to model keyword instances. More...
#include <utils.h>
Public Member Functions | |
Attribute () | |
Attribute (const string &n) | |
Attribute (const char *c) | |
Attribute (const Attribute &o) | |
hashtype | getHash () const |
const char * | getName () const |
bool | isA (const Keyword &t) const |
bool | isA (const Keyword *t) const |
bool | operator< (const Attribute &o) const |
bool | operator== (const string o) const |
void | reset (const char *const c) |
void | reset (const XMLCh *const c) |
A class to model keyword instances.
The class uses hashes to do a fast comparison with the set of keywords.
|
inlineexplicit |
|
inlineexplicit |
|
inlineexplicit |
|
inline |
|
inline |
const char * frepple::utils::Attribute::getName | ( | ) | const |
Return the element name. Since this method involves a lookup in a table with Keywords, it has some performance impact and should be avoided where possible. Only the hash of an element can efficiently be retrieved.
Definition at line 686 of file xmlparser.cpp.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |