Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
QPropertyBindingPrivate Class Reference

#include <qproperty_p.h>

+ Inheritance diagram for QPropertyBindingPrivate:
+ Collaboration diagram for QPropertyBindingPrivate:

Public Types

enum  NotificationState : bool { Delayed , Sent }
 

Public Member Functions

bool isUpdating ()
 
void setSticky (bool keep=true)
 
bool isSticky ()
 
void scheduleNotify ()
 
 QPropertyBindingPrivate (QMetaType metaType, const QtPrivate::BindingFunctionVTable *vtable, const QPropertyBindingSourceLocation &location, bool isQQmlPropertyBinding=false)
 
 ~QPropertyBindingPrivate ()
 
void setProperty (QUntypedPropertyData *propertyPtr)
 
void setStaticObserver (QtPrivate::QPropertyObserverCallback callback, QtPrivate::QPropertyBindingWrapper bindingWrapper)
 
void prependObserver (QPropertyObserverPointer observer)
 
QPropertyObserverPointer takeObservers ()
 
void clearDependencyObservers ()
 
Q_ALWAYS_INLINE QPropertyObserverPointer allocateDependencyObserver ()
 
QPropertyObserverPointer allocateDependencyObserver_slow ()
 
QPropertyBindingSourceLocation sourceLocation () const
 
QPropertyBindingError bindingError () const
 
QMetaType valueMetaType () const
 
void unlinkAndDeref ()
 
bool evaluateRecursive (PendingBindingObserverList &bindingObservers, QBindingStatus *status=nullptr)
 
bool Q_ALWAYS_INLINE evaluateRecursive_inline (PendingBindingObserverList &bindingObservers, QBindingStatus *status)
 
void notifyNonRecursive (const PendingBindingObserverList &bindingObservers)
 
NotificationState notifyNonRecursive ()
 
void setError (QPropertyBindingError &&e)
 
void detachFromProperty ()
 
bool hasCustomVTable () const
 
- Public Member Functions inherited from QtPrivate::RefCounted
int refCount () const
 
void addRef ()
 
bool deref ()
 

Static Public Member Functions

static constexpr size_t getSizeEnsuringAlignment ()
 
static QPropertyBindingPrivateget (const QUntypedPropertyBinding &binding)
 
static QPropertyBindingPrivatecurrentlyEvaluatingBinding ()
 
static void destroyAndFreeMemory (QPropertyBindingPrivate *priv)
 

Public Attributes

size_t dependencyObserverCount = 0
 

Protected Types

using DeclarativeErrorCallback = void(*)(QPropertyBindingPrivate *)
 

Protected Attributes

QUntypedPropertyDatapropertyDataPtr = nullptr
 
union { 
 
   QPropertyBindingSourceLocation   location 
 
   struct { 
 
      std::byte   declarativeExtraData [sizeof(QPropertyBindingSourceLocation)
         - sizeof(DeclarativeErrorCallback)] 
 
      DeclarativeErrorCallback   errorCallBack 
 
   }  
 
};  
 

Friends

struct QPropertyBindingDataPointer
 
class QPropertyBindingPrivatePtr
 

Detailed Description

Definition at line 256 of file qproperty_p.h.

Member Typedef Documentation

◆ DeclarativeErrorCallback

Member Enumeration Documentation

◆ NotificationState

Enumerator
Delayed 
Sent 

Definition at line 405 of file qproperty_p.h.

Constructor & Destructor Documentation

◆ QPropertyBindingPrivate()

QPropertyBindingPrivate::QPropertyBindingPrivate ( QMetaType metaType,
const QtPrivate::BindingFunctionVTable * vtable,
const QPropertyBindingSourceLocation & location,
bool isQQmlPropertyBinding = false )
inline

Definition at line 331 of file qproperty_p.h.

◆ ~QPropertyBindingPrivate()

QPropertyBindingPrivate::~QPropertyBindingPrivate ( )

Definition at line 282 of file qproperty.cpp.

Member Function Documentation

◆ allocateDependencyObserver()

Q_ALWAYS_INLINE QPropertyObserverPointer QPropertyBindingPrivate::allocateDependencyObserver ( )
inline

Definition at line 376 of file qproperty_p.h.

◆ allocateDependencyObserver_slow()

QPropertyObserverPointer QPropertyBindingPrivate::allocateDependencyObserver_slow ( )

Definition at line 301 of file qproperty.cpp.

◆ bindingError()

QPropertyBindingError QPropertyBindingPrivate::bindingError ( ) const
inline

Definition at line 395 of file qproperty_p.h.

◆ clearDependencyObservers()

void QPropertyBindingPrivate::clearDependencyObservers ( )

Definition at line 291 of file qproperty.cpp.

◆ currentlyEvaluatingBinding()

QPropertyBindingPrivate * QPropertyBindingPrivate::currentlyEvaluatingBinding ( )
static

Definition at line 566 of file qproperty.cpp.

◆ destroyAndFreeMemory()

static void QPropertyBindingPrivate::destroyAndFreeMemory ( QPropertyBindingPrivate * priv)
inlinestatic

Definition at line 429 of file qproperty_p.h.

◆ detachFromProperty()

void QPropertyBindingPrivate::detachFromProperty ( )
inline

Definition at line 414 of file qproperty_p.h.

◆ evaluateRecursive()

bool QPropertyBindingPrivate::evaluateRecursive ( PendingBindingObserverList & bindingObservers,
QBindingStatus * status = nullptr )

Definition at line 317 of file qproperty.cpp.

◆ evaluateRecursive_inline()

bool QPropertyBindingPrivate::evaluateRecursive_inline ( PendingBindingObserverList & bindingObservers,
QBindingStatus * status )
inline

Definition at line 828 of file qproperty_p.h.

◆ get()

static QPropertyBindingPrivate * QPropertyBindingPrivate::get ( const QUntypedPropertyBinding & binding)
inlinestatic

Definition at line 408 of file qproperty_p.h.

◆ getSizeEnsuringAlignment()

static constexpr size_t QPropertyBindingPrivate::getSizeEnsuringAlignment ( )
inlinestaticconstexpr

Definition at line 314 of file qproperty_p.h.

◆ hasCustomVTable()

bool QPropertyBindingPrivate::hasCustomVTable ( ) const
inline

Definition at line 424 of file qproperty_p.h.

◆ isSticky()

bool QPropertyBindingPrivate::isSticky ( )
inline

Definition at line 328 of file qproperty_p.h.

◆ isUpdating()

bool QPropertyBindingPrivate::isUpdating ( )
inline

Definition at line 326 of file qproperty_p.h.

◆ notifyNonRecursive() [1/2]

QPropertyBindingPrivate::NotificationState QPropertyBindingPrivate::notifyNonRecursive ( )

Definition at line 333 of file qproperty.cpp.

◆ notifyNonRecursive() [2/2]

void QPropertyBindingPrivate::notifyNonRecursive ( const PendingBindingObserverList & bindingObservers)

Definition at line 324 of file qproperty.cpp.

◆ prependObserver()

void QPropertyBindingPrivate::prependObserver ( QPropertyObserverPointer observer)
inline

Definition at line 361 of file qproperty_p.h.

◆ scheduleNotify()

void QPropertyBindingPrivate::scheduleNotify ( )
inline

Definition at line 329 of file qproperty_p.h.

◆ setError()

void QPropertyBindingPrivate::setError ( QPropertyBindingError && e)
inline

Definition at line 411 of file qproperty_p.h.

◆ setProperty()

void QPropertyBindingPrivate::setProperty ( QUntypedPropertyData * propertyPtr)
inline

Definition at line 343 of file qproperty_p.h.

◆ setStaticObserver()

void QPropertyBindingPrivate::setStaticObserver ( QtPrivate::QPropertyObserverCallback callback,
QtPrivate::QPropertyBindingWrapper bindingWrapper )
inline

Definition at line 344 of file qproperty_p.h.

◆ setSticky()

void QPropertyBindingPrivate::setSticky ( bool keep = true)
inline

Definition at line 327 of file qproperty_p.h.

◆ sourceLocation()

QPropertyBindingSourceLocation QPropertyBindingPrivate::sourceLocation ( ) const
inline

Definition at line 386 of file qproperty_p.h.

◆ takeObservers()

QPropertyObserverPointer QPropertyBindingPrivate::takeObservers ( )
inline

Definition at line 367 of file qproperty_p.h.

◆ unlinkAndDeref()

void QPropertyBindingPrivate::unlinkAndDeref ( )

Definition at line 309 of file qproperty.cpp.

◆ valueMetaType()

QMetaType QPropertyBindingPrivate::valueMetaType ( ) const
inline

Definition at line 396 of file qproperty_p.h.

Friends And Related Symbol Documentation

◆ QPropertyBindingDataPointer

friend struct QPropertyBindingDataPointer
friend

Definition at line 259 of file qproperty_p.h.

◆ QPropertyBindingPrivatePtr

friend class QPropertyBindingPrivatePtr
friend

Definition at line 260 of file qproperty_p.h.

Member Data Documentation

◆ [union]

union { ... } QPropertyBindingPrivate

◆ declarativeExtraData

std::byte QPropertyBindingPrivate::declarativeExtraData[sizeof(QPropertyBindingSourceLocation) - sizeof(DeclarativeErrorCallback)]

Definition at line 304 of file qproperty_p.h.

◆ dependencyObserverCount

size_t QPropertyBindingPrivate::dependencyObserverCount = 0

Definition at line 324 of file qproperty_p.h.

◆ errorCallBack

DeclarativeErrorCallback QPropertyBindingPrivate::errorCallBack

Definition at line 305 of file qproperty_p.h.

◆ location

QPropertyBindingSourceLocation QPropertyBindingPrivate::location

Definition at line 302 of file qproperty_p.h.

◆ propertyDataPtr

QUntypedPropertyData* QPropertyBindingPrivate::propertyDataPtr = nullptr
protected

Definition at line 291 of file qproperty_p.h.

◆ staticBindingWrapper

QtPrivate::QPropertyBindingWrapper QPropertyBindingPrivate::staticBindingWrapper

Definition at line 283 of file qproperty_p.h.

◆ staticObserverCallback

QtPrivate::QPropertyObserverCallback QPropertyBindingPrivate::staticObserverCallback = nullptr

Definition at line 282 of file qproperty_p.h.


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