Main Page
Widgets
Namespaces
Book
Glib::QueryQuark Class Reference Quarks are unique IDs in Glib for strings for use in hash table lookups.
More...
Inheritance diagram for Glib::QueryQuark:
[legend ] List of all members.
Detailed Description
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 &);
Constructor & Destructor Documentation
Glib::QueryQuark::QueryQuark
(
const GQuark&
q
)
Glib::QueryQuark::QueryQuark
(
const ustring &
s
)
Glib::QueryQuark::QueryQuark
(
const char*
s
)
Glib::QueryQuark::~QueryQuark
(
)
[inline]
Member Function Documentation
GQuark Glib::QueryQuark::id
(
)
const [inline]
Glib::QueryQuark::operator GQuark
(
)
const [inline]
Glib::QueryQuark::operator ustring
(
)
const
QueryQuark& Glib::QueryQuark::operator=
(
const QueryQuark&
q
)
Friends And Related Function Documentation
bool operator!=
(
const QueryQuark&
a ,
const QueryQuark&
b
)
[related]
bool operator==
(
const QueryQuark&
a ,
const QueryQuark&
b
)
[related]
The documentation for this class was generated from the following file:
Generated for gtkmm by
Doxygen 1.3-rc1 © 1997-2001