Logo Search packages:      
Sourcecode: ardour version File versions  Download package

Glib::QueryQuark Class Reference

#include <quark.h>

Inherited by Glib::Quark.

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&);

Definition at line 45 of file quark.h.


Public Member Functions

GQuark id () const
 operator GQuark () const
 operator ustring () const
QueryQuarkoperator= (const QueryQuark &q)
 QueryQuark (const char *s)
 QueryQuark (const ustring &s)
 QueryQuark (const GQuark &q)

Private Attributes

GQuark quark_

Related Functions

(Note that these are not member functions.)

bool operator!= (const QueryQuark &a, const QueryQuark &b)
bool operator== (const QueryQuark &a, const QueryQuark &b)

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

Generated by  Doxygen 1.6.0   Back to index