C++ features by examples

is a opaque wrapper with same as wrapped object Interface More...

Inheritance diagram for Proxy:
Collaboration diagram for Proxy:

Public Member Functions

 Proxy (Interface &o)
 
int method () override
 
- Public Member Functions inherited from Interface
virtual int method ()=0
 
virtual ~Interface ()=default
 

Detailed Description

is a opaque wrapper with same as wrapped object Interface

Definition at line 328 of file patterns.cpp.

Constructor & Destructor Documentation

◆ Proxy()

Proxy::Proxy ( Interface o)
inline

Definition at line 332 of file patterns.cpp.

332: subject(o) {}

Member Function Documentation

◆ method()

int Proxy::method ( )
inlineoverridevirtual

Implements Interface.

Definition at line 333 of file patterns.cpp.

333 {
334 return this->subject.method();
335 }
virtual int method()=0
Here is the call graph for this function:
Here is the caller graph for this function:

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