Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #ifndef RefCountPtrT_H
- #define RefCountPtrT_H
- #include <iostream>
- #include <string>
- #include "RefCountT.h"
- using namespace std;
- template <class T>
- class RefCountPtrT {
- private:
- RefCountT<T> *ptr;
- public:
- RefCountPtrT();
- ~RefCountPtrT();
- RefCountPtrT(RefCountPtrT & r);
- void operator=(RefCountPtrT & r);
- void makeNull();
- bool isNull();
- void allocNew();
- void setVal(T val);
- T getVal();
- };
- #endif
Add Comment
Please, Sign In to add comment