C++ features by examples

is concrete Observer More...

Inheritance diagram for View:
Collaboration diagram for View:

Public Member Functions

 View (Model &m)
 
void notify () override
 without arguments More...
 
- Public Member Functions inherited from Observer
virtual void notify ()
 without arguments More...
 
virtual void update (Subject &subject)
 with the only Subject argument More...
 
virtual ~Observer ()=default
 

Public Attributes

Modelmodel
 

Detailed Description

is concrete Observer

Definition at line 643 of file patterns.cpp.

Constructor & Destructor Documentation

◆ View()

View::View ( Model m)
inline

Definition at line 647 of file patterns.cpp.

647: model(m) {};
Model & model
Definition: patterns.cpp:654

Member Function Documentation

◆ notify()

void View::notify ( )
inlineoverridevirtual

without arguments

Reimplemented from Observer.

Definition at line 649 of file patterns.cpp.

649 {
650 // check model
651 (void)model;
652 }

Member Data Documentation

◆ model

Model& View::model

Definition at line 654 of file patterns.cpp.


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