QtGStreamer 1.2.0
Loading...
Searching...
No Matches
Public Types | Public Member Functions | Static Public Member Functions | Related Symbols | List of all members
QGlib::Type Class Reference

#include <QGlib/Type>

Public Types

enum  FundamentalType {
  Invalid = 0 , None = 1<<2 , Interface = 2<<2 , Char = 3<<2 ,
  Uchar = 4<<2 , Boolean = 5<<2 , Int = 6<<2 , Uint = 7<<2 ,
  Long = 8<<2 , Ulong = 9<<2 , Int64 = 10<<2 , Uint64 = 11<<2 ,
  Enum = 12<<2 , Flags = 13<<2 , Float = 14<<2 , Double = 15<<2 ,
  String = 16<<2 , Pointer = 17<<2 , Boxed = 18<<2 , Param = 19<<2 ,
  Object = 20<<2
}
 

Public Member Functions

 Type (Private::GType gtype)
 
 Type (FundamentalType ftype)
 
 Type (const Type &other)
 
Typeoperator= (Type other)
 
bool operator== (Type other) const
 
 operator Private::GType () const
 
QString name () const
 
Quark nameQuark () const
 
bool isValid () const
 
bool isAbstract () const
 
bool isDerived () const
 
bool isFundamental () const
 
bool isValueType () const
 
bool hasValueTable () const
 
bool isClassed () const
 
bool isInstantiatable () const
 
bool isDerivable () const
 
bool isDeepDerivable () const
 
bool isInterface () const
 
Type fundamental () const
 
Type parent () const
 
uint depth () const
 
Type nextBase (Type rootType) const
 
bool isA (Type is_a_type) const
 
template<typename T >
bool isA () const
 
QList< Typechildren () const
 
QList< Typeinterfaces () const
 
QList< TypeinterfacePrerequisites () const
 
void * quarkData (const Quark &qname) const
 
void setQuarkData (const Quark &qname, void *data)
 

Static Public Member Functions

static Type fromInstance (void *nativeInstance)
 
static Type fromName (const char *name)
 

Related Symbols

(Note that these are not member symbols.)

template<class T >
Type GetType ()
 

Detailed Description

Wrapper class for GType.

A GType is a numerical value which represents the unique identifier of a registered type. The GType API is the foundation of the GObject system. It provides the facilities for registering and managing all fundamental data types, user-defined object and interface types.

As a wrapper, this class provides only methods for querying existing types, not registering new ones. You should never need to use it directly, although it might come in handy in some cases.

To retrieve a Type for a certain class, use GetType().

Note
This class is a thin wrapper around an unsigned long. There is no overhead in copying it around, since it is just an integer.

Definition at line 63 of file type.h.

Member Enumeration Documentation

◆ FundamentalType

enum QGlib::Type::FundamentalType

Definition at line 66 of file type.h.

Constructor & Destructor Documentation

◆ Type() [1/4]

QGlib::Type::Type ( )
inline

Definition at line 90 of file type.h.

◆ Type() [2/4]

QGlib::Type::Type ( Private::GType  gtype)
inline

Definition at line 91 of file type.h.

◆ Type() [3/4]

QGlib::Type::Type ( FundamentalType  ftype)
inline

Definition at line 92 of file type.h.

◆ Type() [4/4]

QGlib::Type::Type ( const Type other)
inline

Definition at line 93 of file type.h.

Member Function Documentation

◆ operator=()

Type & QGlib::Type::operator= ( Type  other)
inline

Definition at line 137 of file type.h.

◆ operator==()

bool QGlib::Type::operator== ( Type  other) const
inline

Definition at line 143 of file type.h.

◆ operator Private::GType()

QGlib::Type::operator Private::GType ( ) const
inline

Definition at line 97 of file type.h.

◆ fromInstance()

Type QGlib::Type::fromInstance ( void *  nativeInstance)
static

Definition at line 25 of file type.cpp.

◆ fromName()

Type QGlib::Type::fromName ( const char *  name)
static

Definition at line 34 of file type.cpp.

◆ name()

QString QGlib::Type::name ( ) const

Definition at line 39 of file type.cpp.

◆ nameQuark()

Quark QGlib::Type::nameQuark ( ) const

Definition at line 44 of file type.cpp.

◆ isValid()

bool QGlib::Type::isValid ( ) const

Definition at line 49 of file type.cpp.

◆ isAbstract()

bool QGlib::Type::isAbstract ( ) const

Definition at line 54 of file type.cpp.

◆ isDerived()

bool QGlib::Type::isDerived ( ) const

Definition at line 59 of file type.cpp.

◆ isFundamental()

bool QGlib::Type::isFundamental ( ) const

Definition at line 64 of file type.cpp.

◆ isValueType()

bool QGlib::Type::isValueType ( ) const

Definition at line 69 of file type.cpp.

◆ hasValueTable()

bool QGlib::Type::hasValueTable ( ) const

Definition at line 74 of file type.cpp.

◆ isClassed()

bool QGlib::Type::isClassed ( ) const

Definition at line 79 of file type.cpp.

◆ isInstantiatable()

bool QGlib::Type::isInstantiatable ( ) const

Definition at line 84 of file type.cpp.

◆ isDerivable()

bool QGlib::Type::isDerivable ( ) const

Definition at line 89 of file type.cpp.

◆ isDeepDerivable()

bool QGlib::Type::isDeepDerivable ( ) const

Definition at line 94 of file type.cpp.

◆ isInterface()

bool QGlib::Type::isInterface ( ) const

Definition at line 99 of file type.cpp.

◆ fundamental()

Type QGlib::Type::fundamental ( ) const

Definition at line 104 of file type.cpp.

◆ parent()

Type QGlib::Type::parent ( ) const

Definition at line 109 of file type.cpp.

◆ depth()

uint QGlib::Type::depth ( ) const

Definition at line 114 of file type.cpp.

◆ nextBase()

Type QGlib::Type::nextBase ( Type  rootType) const

Definition at line 119 of file type.cpp.

◆ isA() [1/2]

bool QGlib::Type::isA ( Type  is_a_type) const

Definition at line 124 of file type.cpp.

◆ isA() [2/2]

template<typename T >
bool QGlib::Type::isA ( ) const
inline

Definition at line 152 of file type.h.

◆ children()

QList< Type > QGlib::Type::children ( ) const

Definition at line 139 of file type.cpp.

◆ interfaces()

QList< Type > QGlib::Type::interfaces ( ) const

Definition at line 146 of file type.cpp.

◆ interfacePrerequisites()

QList< Type > QGlib::Type::interfacePrerequisites ( ) const

Definition at line 153 of file type.cpp.

◆ quarkData()

void * QGlib::Type::quarkData ( const Quark qname) const

Definition at line 160 of file type.cpp.

◆ setQuarkData()

void QGlib::Type::setQuarkData ( const Quark qname,
void *  data 
)

Definition at line 165 of file type.cpp.

Friends And Related Symbol Documentation

◆ GetType()

template<class T >
Type GetType ( )
related

This template function retrieves the QGlib::Type (aka GType) of a given type T.

Definition at line 180 of file type.h.


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