ufe 5.5
Universal Front End is a DCC-agnostic component that will allow a DCC to browse and edit data in multiple data models
Ufe::Observer Class Reference

Observer pattern Observer class. More...

#include <observer.h>

Public Types

typedef std::shared_ptr< ObserverPtr
 
typedef std::weak_ptr< ObserverWeakPtr
 

Public Member Functions

virtual ~Observer ()
 Destructor. More...
 
virtual void operator() (const Notification &notification)
 Receive notification from Subject. Implementation in this class does nothing. More...
 
 Observer ()
 

Detailed Description

Observer pattern Observer class.

This class implements the Observer in the Observer Pattern:

https://en.wikipedia.org/wiki/Observer_pattern

Observers are held by weak pointer. The order in which observers are notified is unspecified, implementation dependent, and can change at any time. Observers should NOT rely on the order in which they are added to a Subject and assume they will be called in the same order.

Definition at line 33 of file observer.h.

Member Typedef Documentation

◆ Ptr

typedef std::shared_ptr<Observer> Ufe::Observer::Ptr

Definition at line 36 of file observer.h.

◆ WeakPtr

typedef std::weak_ptr<Observer> Ufe::Observer::WeakPtr

Definition at line 37 of file observer.h.

Constructor & Destructor Documentation

◆ ~Observer()

virtual Ufe::Observer::~Observer ( )
virtual

Destructor.

◆ Observer()

Ufe::Observer::Observer ( )

Constructor Not protected to simplify Python bindings.

Member Function Documentation

◆ operator()()

virtual void Ufe::Observer::operator() ( const Notification notification)
virtual

Receive notification from Subject. Implementation in this class does nothing.


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