QScriptClassPropertyIterator Class ReferenceThe QScriptClassPropertyIterator class provides an iterator interface for custom Qt Script objects. Далее... #include <QScriptClassPropertyIterator> Этот класс был введён в Qt 4.4. Открытые функции
Защищенные функции
Подробное описаниеThe QScriptClassPropertyIterator class provides an iterator interface for custom Qt Script objects. This class is only relevant if you have subclassed QScriptClass and want to provide enumeration of your custom properties (e.g. when objects of your class are used with QScriptValueIterator, or with the for-in statement in scripts). The object() function returns the Qt Script object the iterator is traversing. toFront(), hasNext() and next() provide forward iteration. toBack(), hasPrevious() and previous() provide backward iteration. name(), id() and flags() return information about the last property that was jumped over using next() or previous(). See also QScriptClass::newIterator() and QScriptValueIterator. Описание функций-членовQScriptClassPropertyIterator::QScriptClassPropertyIterator ( const QScriptValue & object ) [protected]Constructs an iterator for traversing object. Subclasses should ensure that the iterator is set to the front of the sequence of properties (before the first property). QScriptClassPropertyIterator::~QScriptClassPropertyIterator () [virtual]Destroys the iterator. QScriptValue::PropertyFlags QScriptClassPropertyIterator::flags () const [virtual]Returns the flags of the last property that was jumped over using next() or previous(). The default implementation calls the propertyFlags() function of object() with argument name(). bool QScriptClassPropertyIterator::hasNext () const [pure virtual]Returns true if there is at least one item ahead of the iterator (i.e. the iterator is not at the back of the property sequence); otherwise returns false. See also next() and hasPrevious(). bool QScriptClassPropertyIterator::hasPrevious () const [pure virtual]Returns true if there is at least one item behind the iterator (i.e. the iterator is not at the front of the property sequence); otherwise returns false. See also previous() and hasNext(). uint QScriptClassPropertyIterator::id () const [virtual]Returns the id of the last property that was jumped over using next() or previous(). The default implementation returns 0. Смотрите также name(). QScriptString QScriptClassPropertyIterator::name () const [pure virtual]Returns the name of the last property that was jumped over using next() or previous(). See also id(). void QScriptClassPropertyIterator::next () [pure virtual]Advances the iterator by one position. Вызов этой функции на итераторе, расположенном позади контейнера, приводит к неопределённым результатам. See also hasNext(), previous(), and name(). QScriptValue QScriptClassPropertyIterator::object () constReturns the Qt Script object this iterator is traversing. void QScriptClassPropertyIterator::previous () [pure virtual]Moves the iterator back by one position. Вызов этой функции на итераторе, расположенном перед контейнером, приводит к неопределённым результатам. See also hasPrevious(), next(), and name(). void QScriptClassPropertyIterator::toBack () [pure virtual]Moves the iterator to the back of the QScriptValue (after the last property). Смотрите также toFront() и previous(). void QScriptClassPropertyIterator::toFront () [pure virtual]Moves the iterator to the front of the QScriptValue (before the first property). |
Попытка перевода Qt документации. Если есть желание присоединиться, или если есть замечания или пожелания, то заходите на форум: Перевод Qt документации на русский язык... Люди внесшие вклад в перевод: Команда переводчиков |