C++ features by examples
Observer Struct Reference

is virtual observer of a Subject More...

Inheritance diagram for Observer:

Public Member Functions

virtual void notify ()
 without arguments More...
 
virtual void update (Subject &subject)
 with the only Subject argument More...
 
virtual ~Observer ()=default
 

Detailed Description

is virtual observer of a Subject

Definition at line 394 of file patterns.cpp.

Constructor & Destructor Documentation

◆ ~Observer()

virtual Observer::~Observer ( )
virtualdefault

Member Function Documentation

◆ notify()

virtual void Observer::notify ( )
inlinevirtual

without arguments

Reimplemented in View.

Definition at line 398 of file patterns.cpp.

398{};

◆ update()

virtual void Observer::update ( Subject subject)
inlinevirtual

with the only Subject argument

Definition at line 400 of file patterns.cpp.

400{};

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