Base class for typed object observer classes.
More...
#include <typed_object_store_observer.hpp>
Inherits matador::basic_object_store_observer.
template<class T>
class matador::typed_object_store_observer< T >
Base class for typed object observer classes.
- Template Parameters
-
T | Type of the typed object store observer |
When interested to observe
- attach (prototype_node)
- detach (prototype_node)
- insert (object)
- update (object)
- delete (object) actions an observer class instance must be registered with object store. Use this class as base class for all observer classes.
◆ typed_object_store_observer()
◆ on_attach()
Called on prototype_node attach.
When a prototype node is attached to the object store this is called after the attaching succeeded.
- Parameters
-
node | The attached prototype node |
prototype | The prototype object of the attached node |
◆ on_delete()
Called on object deletion.
Called when an object is deleted from the object_store.
- Parameters
-
proxy | The proxy of the deleted object. |
◆ on_detach()
Called on prototype_node detach.
When a prototype node is detached from the object store this is called before the detaching succeeded.
- Parameters
-
node | The to be detached prototype node |
prototype | The prototype object of the detached node |
◆ on_insert()
Called on object insertion.
Called when an object is inserted into the object_store.
- Parameters
-
proxy | The proxy of the inserted object. |
◆ on_update()
Called on object update.
Called when an object is updated in the object_store.
- Parameters
-
proxy | The proxy of the updated object. |
The documentation for this class was generated from the following file:
- matador/object/typed_object_store_observer.hpp