Advertisement
Guest User

Untitled

a guest
May 31st, 2016
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.76 KB | None | 0 0
  1. //iterator class
  2. //template<typename T>
  3. //class Iterator1
  4. //{
  5. //public:
  6. // Iterator1( DynamicVector2<Balloon> &_v);//aici in loc de balloon sa pot sa bag T
  7. // ~Iterator1();
  8. // void first();
  9. //
  10. // void next();
  11. // Balloon element();//sau aici
  12. // bool isValid() const;
  13. //
  14. //private:
  15. // int curent;
  16. // DynamicVector2 <Balloon> &v;//sau aici
  17. //};
  18. //
  19. //Iterator1::Iterator1(DynamicVector2<Balloon> &_v):v{_v}
  20. //{
  21. //}
  22. //
  23. //Iterator1::~Iterator1()
  24. //{
  25. //}
  26. //
  27. //inline void Iterator1::first()
  28. //{
  29. // curent = 0;
  30. //}
  31. //
  32. //
  33. //
  34. //inline void Iterator1::next()
  35. //{
  36. // curent++;
  37. //}
  38. //
  39. //inline Balloon Iterator1::element()
  40. //{
  41. // return v.elems[curent];
  42. //}
  43. //
  44. //inline bool Iterator1::isValid() const
  45. //{
  46. // return this->curent< v.getSize();
  47. //}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement