添加职责链模式

master
a7458969 2020-05-21 01:04:16 +08:00
parent 9a8f818518
commit be3e09a06f
1 changed files with 10 additions and 1 deletions

View File

@ -27,5 +27,14 @@ protected:
T *mBridgeData;
};
template <typename T>
class ResponsabilityChan{
public:
int AddNext(ResponsabilityChan *p){
}
private:
ResponsabilityChan *mHead;
ResponsabilityChan *mTail;
};
#endif //GENERAL_ADAPTER_H