Qt 4.8
Public Functions | Properties | List of all members
QScript::QScriptMetaMethod Class Reference

Public Functions

int argumentCount () const
 
QScriptMetaType argumentType (int arg) const
 
int count () const
 
int firstUnresolvedIndex () const
 
bool fullyResolved () const
 
bool hasUnresolvedReturnType () const
 
bool isValid () const
 
 QScriptMetaMethod ()
 
 QScriptMetaMethod (const QVector< QScriptMetaType > &types)
 
QScriptMetaType returnType () const
 
QScriptMetaType type (int index) const
 
QVector< QScriptMetaTypetypes () const
 

Properties

int m_firstUnresolvedIndex
 
QVector< QScriptMetaTypem_types
 

Detailed Description

Definition at line 445 of file qscriptqobject.cpp.

Constructors and Destructors

◆ QScriptMetaMethod() [1/2]

QScript::QScriptMetaMethod::QScriptMetaMethod ( )
inline

Definition at line 448 of file qscriptqobject.cpp.

449  { }

◆ QScriptMetaMethod() [2/2]

QScript::QScriptMetaMethod::QScriptMetaMethod ( const QVector< QScriptMetaType > &  types)
inline

Definition at line 450 of file qscriptqobject.cpp.

451  : m_types(types), m_firstUnresolvedIndex(-1)
452  {
454  for (it = m_types.constBegin(); it != m_types.constEnd(); ++it) {
455  if ((*it).kind() == QScriptMetaType::Unresolved) {
456  m_firstUnresolvedIndex = it - m_types.constBegin();
457  break;
458  }
459  }
460  }
#define it(className, varName)
QVector< QScriptMetaType > m_types
const T * const_iterator
The QVector::const_iterator typedef provides an STL-style const iterator for QVector and QStack...
Definition: qvector.h:245

Functions

◆ argumentCount()

int QScript::QScriptMetaMethod::argumentCount ( ) const
inline

Definition at line 467 of file qscriptqobject.cpp.

Referenced by QScript::callQtMethod().

468  { return m_types.count() - 1; }
QVector< QScriptMetaType > m_types

◆ argumentType()

QScriptMetaType QScript::QScriptMetaMethod::argumentType ( int  arg) const
inline

Definition at line 470 of file qscriptqobject.cpp.

Referenced by QScript::callQtMethod().

471  { return m_types.at(arg + 1); }
QVector< QScriptMetaType > m_types

◆ count()

int QScript::QScriptMetaMethod::count ( ) const
inline

Definition at line 482 of file qscriptqobject.cpp.

Referenced by QScript::callQtMethod().

483  { return m_types.count(); }
QVector< QScriptMetaType > m_types

◆ firstUnresolvedIndex()

int QScript::QScriptMetaMethod::firstUnresolvedIndex ( ) const
inline

Definition at line 479 of file qscriptqobject.cpp.

Referenced by QScript::callQtMethod().

◆ fullyResolved()

bool QScript::QScriptMetaMethod::fullyResolved ( ) const
inline

Definition at line 473 of file qscriptqobject.cpp.

Referenced by QScript::callQtMethod().

474  { return m_firstUnresolvedIndex == -1; }

◆ hasUnresolvedReturnType()

bool QScript::QScriptMetaMethod::hasUnresolvedReturnType ( ) const
inline

Definition at line 476 of file qscriptqobject.cpp.

Referenced by QScript::callQtMethod().

477  { return (m_firstUnresolvedIndex == 0); }

◆ isValid()

bool QScript::QScriptMetaMethod::isValid ( ) const
inline

Definition at line 461 of file qscriptqobject.cpp.

462  { return !m_types.isEmpty(); }
QVector< QScriptMetaType > m_types

◆ returnType()

QScriptMetaType QScript::QScriptMetaMethod::returnType ( ) const
inline

Definition at line 464 of file qscriptqobject.cpp.

Referenced by QScript::callQtMethod().

465  { return m_types.at(0); }
QVector< QScriptMetaType > m_types

◆ type()

QScriptMetaType QScript::QScriptMetaMethod::type ( int  index) const
inline

Definition at line 485 of file qscriptqobject.cpp.

Referenced by QScript::callQtMethod().

486  { return m_types.at(index); }
QVector< QScriptMetaType > m_types
quint16 index

◆ types()

QVector<QScriptMetaType> QScript::QScriptMetaMethod::types ( ) const
inline

Definition at line 488 of file qscriptqobject.cpp.

Referenced by QScript::callQtMethod().

489  { return m_types; }
QVector< QScriptMetaType > m_types

Properties

◆ m_firstUnresolvedIndex

int QScript::QScriptMetaMethod::m_firstUnresolvedIndex
private

Definition at line 493 of file qscriptqobject.cpp.

◆ m_types

QVector<QScriptMetaType> QScript::QScriptMetaMethod::m_types
private

Definition at line 492 of file qscriptqobject.cpp.


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