frepple::utils::Attribute Class Reference
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) |
Detailed Description
A class to model keyword instances.
The class uses hashes to do a fast comparison with the set of keywords.
Constructor & Destructor Documentation
frepple::utils::Attribute::Attribute | ( | ) | [inline, explicit] |
frepple::utils::Attribute::Attribute | ( | const string & | n | ) | [inline, explicit] |
frepple::utils::Attribute::Attribute | ( | const char * | c | ) | [inline, explicit] |
frepple::utils::Attribute::Attribute | ( | const Attribute & | o | ) | [inline] |
Member Function Documentation
hashtype frepple::utils::Attribute::getHash | ( | ) | const [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 660 of file xmlparser.cpp.
bool frepple::utils::Attribute::isA | ( | const Keyword & | t | ) | const [inline] |
bool frepple::utils::Attribute::isA | ( | const Keyword * | t | ) | const [inline] |
bool frepple::utils::Attribute::operator< | ( | const Attribute & | o | ) | const [inline] |
bool frepple::utils::Attribute::operator== | ( | const string | o | ) | const [inline] |
void frepple::utils::Attribute::reset | ( | const char *const | c | ) | [inline] |
void frepple::utils::Attribute::reset | ( | const XMLCh *const | c | ) | [inline] |
The documentation for this class was generated from the following files:
Documentation generated for frePPLe by
