|
C++ features by examples
|


Public Types | |
| typedef function< void()> | Command |
Public Member Functions | |
| Active_object (Interface &s) | |
| ~Active_object () | |
| int | method () override |
Public Member Functions inherited from Interface | |
| virtual int | method ()=0 |
| virtual | ~Interface ()=default |
Public Attributes | |
| Interface & | subject |
Protected Attributes | |
| Synchronized_queue< Command > | cmd_q |
| thread | th |
Revisiting the Active Object Pattern - with C++11 Closures
Definition at line 752 of file patterns.cpp.
| typedef function<void()> Active_object::Command |
Definition at line 760 of file patterns.cpp.
|
inline |
Definition at line 762 of file patterns.cpp.
|
inline |
Definition at line 774 of file patterns.cpp.
|
inlineoverridevirtual |
Implements Interface.
Definition at line 780 of file patterns.cpp.


|
protected |
Definition at line 788 of file patterns.cpp.
| Interface& Active_object::subject |
Definition at line 761 of file patterns.cpp.
|
protected |
Definition at line 789 of file patterns.cpp.