Guest User

Untitled

a guest
Apr 19th, 2018
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1.  
  2. #ifndef RefCountPtrT_H
  3. #define RefCountPtrT_H
  4.  
  5.  
  6. #include <iostream>
  7. #include <string>
  8. #include "RefCountT.h"
  9.  
  10. using namespace std;
  11.  
  12. template <class T>
  13. class RefCountPtrT {
  14. private:
  15. RefCountT<T> *ptr;
  16.  
  17. public:
  18.  
  19. RefCountPtrT();
  20. ~RefCountPtrT();
  21. RefCountPtrT(RefCountPtrT & r);
  22. void operator=(RefCountPtrT & r);
  23. void makeNull();
  24. bool isNull();
  25. void allocNew();
  26. void setVal(T val);
  27. T getVal();
  28. };
  29.  
  30.  
  31. #endif
Add Comment
Please, Sign In to add comment