GFC Logo GFC Title Logo
Reference Manual
Main Page  |  Namespace List  |  Alphabetical List  |  Class List  |  File List

GFC::G::Quark Class Reference

A GQuark C++ wrapper interface. More...

#include <gfc/glib/quark.hh>

Inheritance diagram for GFC::G::Quark:

GFC::IntegerObject< GQuark > List of all members.

Public Member Functions

Constructors
Accessors

Static Public Member Functions


Detailed Description

A GQuark C++ wrapper interface.

Quarks are associations between strings and integer identifiers. Given either the string or the Quark identifier it is possible to retrieve the other. Quarks are used to get and set object properties and used data pointers.


Constructor & Destructor Documentation

GFC::G::Quark::Quark const char *  str  ) 
 

Construct a Quark from a string.

Parameters:
str A string.

Wraps the GQuark identifying the given string. If the string does not currently have an associated GQuark, a new GQuark is created, using a copy of the string.

GFC::G::Quark::Quark const String str  ) 
 

Construct a Quark from a String.

Parameters:
str A String.

Wraps the GQuark identifying the given string. If the string does not currently have an associated GQuark, a new GQuark is created, using a copy of the string.

GFC::G::Quark::Quark GQuark  quark  ) 
 

Construct a quark from an existing GQuark.

Parameters:
quark A GQuark.

GFC::G::Quark::Quark const Quark src  ) 
 

Copy Constructor.

Parameters:
src The source Quark.


Member Function Documentation

Quark& GFC::G::Quark::operator= const Quark src  ) 
 

Assignment operator.

Parameters:
src The source Quark.

Quark GFC::G::Quark::try_string const char *  str  )  [static]
 

Gets the quark associated with the given string.

Parameters:
str A string.
Returns:
The quark, or null if the string has no associated quark.


The documentation for this class was generated from the following file:
Generated on Tue Aug 24 00:04:58 2004 for GFC-Core by doxygen 1.3.8