添加桥接模式
parent
0cdd412b6e
commit
ad50d3fc8f
|
@ -13,4 +13,16 @@ class Adaptee{
|
|||
|
||||
};
|
||||
|
||||
template<typename T>
|
||||
class Bridgeable{
|
||||
public:
|
||||
Bridgeable(T *dat){
|
||||
mBridgeData = dat;
|
||||
}
|
||||
|
||||
private:
|
||||
T *mBridgeData;
|
||||
|
||||
};
|
||||
|
||||
#endif //GENERAL_ADAPTER_H
|
||||
|
|
Loading…
Reference in New Issue