Engauge Digitizer 2
|
Hash table class that tracks point identifiers as the key, with a corresponding boolean value. More...
#include <PointIdentifiers.h>
Public Member Functions | |
PointIdentifiers () | |
Single constructor. | |
bool | contains (const QString &pointIdentifier) const |
True if specified entry exists in the table. | |
int | count () const |
Number of entries. | |
QString | getKey (int i) const |
Get key for index. | |
bool | getValue (const QString &pointIdentifier) const |
Get value for key. | |
void | loadXml (QXmlStreamReader &reader) |
Load from serialized xml. | |
void | saveXml (QXmlStreamWriter &writer) const |
Serialize table to xml. | |
void | setKeyValue (const QString &pointIdentifier, bool value) |
Set key/value pair. |
Hash table class that tracks point identifiers as the key, with a corresponding boolean value.
Definition at line 19 of file PointIdentifiers.h.
PointIdentifiers::PointIdentifiers | ( | ) |
bool PointIdentifiers::contains | ( | const QString & | pointIdentifier | ) | const |
True if specified entry exists in the table.
Definition at line 20 of file PointIdentifiers.cpp.
int PointIdentifiers::count | ( | ) | const |
Number of entries.
Definition at line 28 of file PointIdentifiers.cpp.
QString PointIdentifiers::getKey | ( | int | i | ) | const |
Get key for index.
This involves copying of all the keys and is therefore slower than using key lookup, so should not be used for extremely numerous point sets
Definition at line 33 of file PointIdentifiers.cpp.
bool PointIdentifiers::getValue | ( | const QString & | pointIdentifier | ) | const |
Get value for key.
Definition at line 42 of file PointIdentifiers.cpp.
void PointIdentifiers::loadXml | ( | QXmlStreamReader & | reader | ) |
Load from serialized xml.
Definition at line 49 of file PointIdentifiers.cpp.
void PointIdentifiers::saveXml | ( | QXmlStreamWriter & | writer | ) | const |
Serialize table to xml.
Definition at line 91 of file PointIdentifiers.cpp.
void PointIdentifiers::setKeyValue | ( | const QString & | pointIdentifier, |
bool | value ) |
Set key/value pair.
Definition at line 107 of file PointIdentifiers.cpp.