Design Pattern Examples
Overview of object-oriented design patterns
Proxy_Classes_Container Class Reference

For the purposes of this example, this class hides the details about the proxy class and the real class, exposing only the IWorkByProxy interface of the proxy. In a real program, the real class would be in its own application/DLL/assembly and separate from the proxy class. More...

#include <Proxy_Class.h>

Collaboration diagram for Proxy_Classes_Container:
Collaboration graph

Static Public Member Functions

static std::unique_ptr< IWorkByProxyCreateProxy ()
 Retrieve a new instance of the proxy class.
 

Detailed Description

For the purposes of this example, this class hides the details about the proxy class and the real class, exposing only the IWorkByProxy interface of the proxy. In a real program, the real class would be in its own application/DLL/assembly and separate from the proxy class.

Definition at line 47 of file Proxy_Class.h.

Member Function Documentation

◆ CreateProxy()

std::unique_ptr< IWorkByProxy > CreateProxy ( )
static

Retrieve a new instance of the proxy class.

Returns
An instance of a proxy class that implements the IWorkByProxy interface.

Definition at line 113 of file Proxy_Class.cpp.

Referenced by DesignPatternExamples_cpp::Proxy_Exercise().


The documentation for this class was generated from the following files: