C++ features by examples
Controller Struct Reference

is part of MVC with Model and View More...

Collaboration diagram for Controller:

Public Member Functions

 Controller (Model &s)
 
int command (Command &cmnd)
 
int command (Command &&cmnd)
 

Public Attributes

Modelmod
 

Detailed Description

is part of MVC with Model and View

Definition at line 657 of file patterns.cpp.

Constructor & Destructor Documentation

◆ Controller()

Controller::Controller ( Model s)
inline

Definition at line 663 of file patterns.cpp.

663: mod(s) { };
Model & mod
Definition: patterns.cpp:662

Member Function Documentation

◆ command() [1/2]

int Controller::command ( Command &&  cmnd)
inline

Definition at line 669 of file patterns.cpp.

669 {
670 return mod.command(cmnd);
671 }
int command(Command &cmnd)
Definition: patterns.cpp:630
Here is the call graph for this function:

◆ command() [2/2]

int Controller::command ( Command cmnd)
inline

Definition at line 665 of file patterns.cpp.

665 {
666 return mod.command(cmnd);
667 }
Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ mod

Model& Controller::mod

Definition at line 662 of file patterns.cpp.


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