C++ features by examples

is a wrapper using different from Standalone interface. AKA Adapter More...

Inheritance diagram for Bridge:
Collaboration diagram for Bridge:

Public Member Functions

 Bridge (Standalone &s)
 
int method () override
 
- Public Member Functions inherited from Interface
virtual int method ()=0
 
virtual ~Interface ()=default
 

Detailed Description

is a wrapper using different from Standalone interface. AKA Adapter

Definition at line 314 of file patterns.cpp.

Constructor & Destructor Documentation

◆ Bridge()

Bridge::Bridge ( Standalone s)
inline

Definition at line 318 of file patterns.cpp.

318 : standalone(s) {
319// trace(typeid(*this).name());
320 }

Member Function Documentation

◆ method()

int Bridge::method ( )
inlineoverridevirtual

Implements Interface.

Definition at line 321 of file patterns.cpp.

321 {
322 return this->standalone.standalone_method();
323 }
float standalone_method() const
Definition: patterns.cpp:309
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: