?
Solved

What is the difference between a Bridge pattern and a Pimpl?

Posted on 2004-10-05
3
Medium Priority
?
771 Views
Last Modified: 2008-03-17
I'm reading Design Pattern, and it's description of a Bridge pattern sounds a lot like a Pimpl.

What is the difference between a Bridge pattern and a Pimpl?

Please give example, because that's the best way I can understand it.
0
Comment
Question by:TomoMaili
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
3 Comments
 
LVL 30

Expert Comment

by:Axter
ID: 12231596
The pimpl idiom is useful for reducing physical compile time dependencies. In larger projects, reducing compile times can be very important.
The purpose of Bridge is to allow a Class to be extended in two independent ways.
0
 
LVL 30

Accepted Solution

by:
Axter earned 2000 total points
ID: 12231618
With Herb Sutter's Pimpl Idiom the outside class is not an "Abstraction" and
the inside class can only be of one specific type. With (Design Patterns) Bridge
pattern, the outside class is a true abstraction that can be implemented
in any of several different ways, while the inner class is *also* an
abstraction that can be implemented in any of several different ways.
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Many modern programming languages support the concept of a property -- a class member that combines characteristics of both a data member and a method.  These are sometimes called "smart fields" because you can add logic that is applied automaticall…
Container Orchestration platforms empower organizations to scale their apps at an exceptional rate. This is the reason numerous innovation-driven companies are moving apps to an appropriated datacenter wide platform that empowers them to scale at a …
The goal of the video will be to teach the user the difference and consequence of passing data by value vs passing data by reference in C++. An example of passing data by value as well as an example of passing data by reference will be be given. Bot…
The viewer will learn how to use the return statement in functions in C++. The video will also teach the user how to pass data to a function and have the function return data back for further processing.
Suggested Courses

752 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question