glibmm 2.80.0
|
Quarks are unique IDs in Glib for strings for use in hash table lookups. More...
#include <glibmm/quark.h>
Public Member Functions | |
QueryQuark (const GQuark &q) | |
QueryQuark (const ustring &s) | |
QueryQuark (const char *s) | |
~QueryQuark () noexcept | |
QueryQuark & | operator= (const QueryQuark &q) |
operator ustring () const | |
operator GQuark () const | |
GQuark | id () const |
Related Symbols | |
(Note that these are not member symbols.) | |
bool | operator== (const QueryQuark & a, const QueryQuark & b) |
bool | operator!= (const QueryQuark & a, const QueryQuark & b) |
Quarks are unique IDs in Glib for strings for use in hash table lookups.
Each Quark is unique but may change between runs.
QueryQuark is a converter class for looking up but not allocating an ID. An id means the quark lookup failed.
Quark is used for actions for which the id should live on While QueryQuark should be used for queries. ie. void set_data (const Quark&, void * data); void* get_data (const QueryQuark&);
Glib::QueryQuark::QueryQuark | ( | const GQuark & | q | ) |
|
inlinenoexcept |
|
inline |
|
inline |
Glib::QueryQuark::operator ustring | ( | ) | const |
QueryQuark & Glib::QueryQuark::operator= | ( | const QueryQuark & | q | ) |
|
related |
|
related |