C++ features by examples
Factory_method_demo Struct Referenceabstract
Inheritance diagram for Factory_method_demo:

Public Member Functions

virtual unique_ptr< Interfacefactory_method ()=0
 
int client ()
 

Detailed Description

Definition at line 205 of file patterns.cpp.

Member Function Documentation

◆ client()

int Factory_method_demo::client ( )
inline

Definition at line 209 of file patterns.cpp.

209 {
210 auto p(factory_method());
211 return p->method();
212 };
virtual unique_ptr< Interface > factory_method()=0
Here is the call graph for this function:
Here is the caller graph for this function:

◆ factory_method()

virtual unique_ptr< Interface > Factory_method_demo::factory_method ( )
pure virtual

Implemented in Sample_factory_method_demo.

Here is the caller graph for this function:

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