Dataquay 0.8
Dataquay::ObjectMapperForwarder Class Reference

ObjectMapperForwarder notifies ObjectMapper when a QObject is modified or destroyed. More...

#include <ObjectMapperForwarder.h>

Inheritance diagram for Dataquay::ObjectMapperForwarder:

Public Member Functions

 ObjectMapperForwarder (ObjectMapper *mapper, QObject *o)
 

Detailed Description

ObjectMapperForwarder notifies ObjectMapper when a QObject is modified or destroyed.

It connects all of the object's property notify signals and its destroyed signal to itself, and then calls ObjectMapper methods when they are activated.

ObjectMapperForwarder is used automatically by ObjectMapper; you do not normally need to use it yourself.

The principal motivation for this class is to avoid the ObjectMapper trying to connect many signals for each of many managed objects directly to its slots: if the number of such objects was large, this would be a serious performance bottleneck.

Definition at line 57 of file ObjectMapperForwarder.h.

Constructor & Destructor Documentation

◆ ObjectMapperForwarder()

Dataquay::ObjectMapperForwarder::ObjectMapperForwarder ( ObjectMapper * mapper,
QObject * o )

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