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

#include <qdeclarativeexpression_p.h>

Inheritance diagram for QDeclarativeAbstractExpression:
QDeclarativeCompiledBindings QDeclarativeQtScriptExpression QDeclarativeExpressionPrivate QDeclarativeBindingPrivate

Public Functions

QDeclarativeContextDatacontext () const
 
bool isValid () const
 
 QDeclarativeAbstractExpression ()
 
virtual void refresh ()
 
void setContext (QDeclarativeContextData *)
 
virtual ~QDeclarativeAbstractExpression ()
 

Properties

QDeclarativeContextDatam_context
 
QDeclarativeAbstractExpressionm_nextExpression
 
QDeclarativeAbstractExpression ** m_prevExpression
 

Friends

class QDeclarativeContext
 
class QDeclarativeContextData
 
class QDeclarativeContextPrivate
 

Detailed Description

Definition at line 65 of file qdeclarativeexpression_p.h.

Constructors and Destructors

◆ QDeclarativeAbstractExpression()

QDeclarativeAbstractExpression::QDeclarativeAbstractExpression ( )

Definition at line 830 of file qdeclarativeexpression.cpp.

832 {
833 }
QDeclarativeAbstractExpression ** m_prevExpression
QDeclarativeAbstractExpression * m_nextExpression
QDeclarativeContextData * m_context

◆ ~QDeclarativeAbstractExpression()

QDeclarativeAbstractExpression::~QDeclarativeAbstractExpression ( )
virtual

Definition at line 835 of file qdeclarativeexpression.cpp.

836 {
837  if (m_prevExpression) {
839  if (m_nextExpression)
841  }
842 }
QDeclarativeAbstractExpression ** m_prevExpression
QDeclarativeAbstractExpression * m_nextExpression

Functions

◆ context()

QDeclarativeContextData * QDeclarativeAbstractExpression::context ( ) const

Definition at line 844 of file qdeclarativeexpression.cpp.

Referenced by QDeclarativeCompiledBindingsPrivate::run(), and setContext().

845 {
846  return m_context;
847 }
QDeclarativeContextData * m_context

◆ isValid()

bool QDeclarativeAbstractExpression::isValid ( ) const

Definition at line 874 of file qdeclarativeexpression.cpp.

875 {
876  return m_context != 0;
877 }
QDeclarativeContextData * m_context

◆ refresh()

void QDeclarativeAbstractExpression::refresh ( )
virtual

Reimplemented in QDeclarativeBindingPrivate.

Definition at line 870 of file qdeclarativeexpression.cpp.

Referenced by QDeclarativeContextData::refreshExpressions().

871 {
872 }

◆ setContext()

void QDeclarativeAbstractExpression::setContext ( QDeclarativeContextData context)

Definition at line 849 of file qdeclarativeexpression.cpp.

Referenced by QDeclarativeExpressionPrivate::init(), and QDeclarativeCompiledBindings::QDeclarativeCompiledBindings().

850 {
851  if (m_prevExpression) {
853  if (m_nextExpression)
855  m_prevExpression = 0;
856  m_nextExpression = 0;
857  }
858 
859  m_context = context;
860 
861  if (m_context) {
863  if (m_nextExpression)
865  m_prevExpression = &context->expressions;
866  m_context->expressions = this;
867  }
868 }
QDeclarativeAbstractExpression ** m_prevExpression
QDeclarativeAbstractExpression * expressions
QDeclarativeAbstractExpression * m_nextExpression
QDeclarativeContextData * m_context
QDeclarativeContextData * context() const

Friends and Related Functions

◆ QDeclarativeContext

friend class QDeclarativeContext
friend

Definition at line 79 of file qdeclarativeexpression_p.h.

◆ QDeclarativeContextData

Definition at line 80 of file qdeclarativeexpression_p.h.

◆ QDeclarativeContextPrivate

Definition at line 81 of file qdeclarativeexpression_p.h.

Properties

◆ m_context

QDeclarativeContextData* QDeclarativeAbstractExpression::m_context
private

◆ m_nextExpression

QDeclarativeAbstractExpression* QDeclarativeAbstractExpression::m_nextExpression
private

◆ m_prevExpression

QDeclarativeAbstractExpression** QDeclarativeAbstractExpression::m_prevExpression
private

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