Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //iterator class
- //template<typename T>
- //class Iterator1
- //{
- //public:
- // Iterator1( DynamicVector2<Balloon> &_v);//aici in loc de balloon sa pot sa bag T
- // ~Iterator1();
- // void first();
- //
- // void next();
- // Balloon element();//sau aici
- // bool isValid() const;
- //
- //private:
- // int curent;
- // DynamicVector2 <Balloon> &v;//sau aici
- //};
- //
- //Iterator1::Iterator1(DynamicVector2<Balloon> &_v):v{_v}
- //{
- //}
- //
- //Iterator1::~Iterator1()
- //{
- //}
- //
- //inline void Iterator1::first()
- //{
- // curent = 0;
- //}
- //
- //
- //
- //inline void Iterator1::next()
- //{
- // curent++;
- //}
- //
- //inline Balloon Iterator1::element()
- //{
- // return v.elems[curent];
- //}
- //
- //inline bool Iterator1::isValid() const
- //{
- // return this->curent< v.getSize();
- //}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement