Qt 4.8
Public Functions | Properties | List of all members
QGenericArgument Class Reference

The QGenericArgument class is an internal helper class for marshalling arguments. More...

#include <qobjectdefs.h>

Inheritance diagram for QGenericArgument:
QArgument< T > QArgument< T & > QGenericReturnArgument QReturnArgument< T >

Public Functions

void * data () const
 Returns the data set in the constructor. More...
 
const char * name () const
 Returns the name set in the constructor. More...
 
 QGenericArgument (const char *aName=0, const void *aData=0)
 Constructs a QGenericArgument object with the given name and data. More...
 

Properties

const void * _data
 
const char * _name
 

Detailed Description

The QGenericArgument class is an internal helper class for marshalling arguments.

This class should never be used directly. Please use the Q_ARG() macro instead.

See also
Q_ARG(), QMetaObject::invokeMethod(), QGenericReturnArgument

Definition at line 256 of file qobjectdefs.h.

Constructors and Destructors

◆ QGenericArgument()

QGenericArgument::QGenericArgument ( const char *  aName = 0,
const void *  aData = 0 
)
inline

Constructs a QGenericArgument object with the given name and data.

Definition at line 259 of file qobjectdefs.h.

260  : _data(aData), _name(aName) {}
const void * _data
Definition: qobjectdefs.h:265
const char * _name
Definition: qobjectdefs.h:266

Functions

◆ data()

QGenericArgument::data ( ) const
inline

Returns the data set in the constructor.

Definition at line 261 of file qobjectdefs.h.

Referenced by QMetaMethod::invoke(), and QMetaObject::newInstance().

261 { return const_cast<void *>(_data); }
const void * _data
Definition: qobjectdefs.h:265

◆ name()

QGenericArgument::name ( ) const
inline

Returns the name set in the constructor.

Definition at line 262 of file qobjectdefs.h.

Referenced by QMetaMethod::invoke(), QMetaObject::invokeMethod(), and QMetaObject::newInstance().

262 { return _name; }
const char * _name
Definition: qobjectdefs.h:266

Properties

◆ _data

const void* QGenericArgument::_data
private

Definition at line 265 of file qobjectdefs.h.

◆ _name

const char* QGenericArgument::_name
private

Definition at line 266 of file qobjectdefs.h.


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