bridge_pattern::Abstraction
-
class Abstraction
The Abstraction defines the high-level control logic and delegates low-level operations to the Implementor.
Subclassed by bridge_pattern::RefinedAbstraction
Public Functions
-
explicit Abstraction(Implementor *implementor)
Constructor to initialize the abstraction with an Implementor.
- Parameters:
implementor – Pointer to the Implementor instance.
-
virtual ~Abstraction() = default
Virtual destructor to clean up resources.
-
virtual std::string operation() const
High-level operation implemented using the Implementor.
- Returns:
A string representing the result of the operation.
-
explicit Abstraction(Implementor *implementor)