Engauge Digitizer 2
Loading...
Searching...
No Matches
Public Member Functions | List of all members
PointIdentifiers Class Reference

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.
 

Detailed Description

Hash table class that tracks point identifiers as the key, with a corresponding boolean value.

Definition at line 19 of file PointIdentifiers.h.

Constructor & Destructor Documentation

◆ PointIdentifiers()

PointIdentifiers::PointIdentifiers ( )

Single constructor.

Definition at line 16 of file PointIdentifiers.cpp.

Member Function Documentation

◆ contains()

bool PointIdentifiers::contains ( const QString &  pointIdentifier) const

True if specified entry exists in the table.

Definition at line 20 of file PointIdentifiers.cpp.

◆ count()

int PointIdentifiers::count ( ) const

Number of entries.

Definition at line 28 of file PointIdentifiers.cpp.

◆ getKey()

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.

◆ getValue()

bool PointIdentifiers::getValue ( const QString &  pointIdentifier) const

Get value for key.

Definition at line 42 of file PointIdentifiers.cpp.

◆ loadXml()

void PointIdentifiers::loadXml ( QXmlStreamReader &  reader)

Load from serialized xml.

Definition at line 49 of file PointIdentifiers.cpp.

◆ saveXml()

void PointIdentifiers::saveXml ( QXmlStreamWriter &  writer) const

Serialize table to xml.

Definition at line 91 of file PointIdentifiers.cpp.

◆ setKeyValue()

void PointIdentifiers::setKeyValue ( const QString &  pointIdentifier,
bool  value 
)

Set key/value pair.

Definition at line 107 of file PointIdentifiers.cpp.


The documentation for this class was generated from the following files: