Node.h 654 B

1234567891011121314151617181920212223
  1. #pragma once
  2. #include <iostream>
  3. #include "Circle.h"
  4. class Node
  5. {
  6. Node* pPrev; //óęŕçŕňĺëü íŕ ďđĺäűäóůčé ýëĺěĺíň
  7. Node* pNext; //óęŕçŕňĺëü íŕ ńëĺäóţůčé ýëĺěĺíň
  8. Circle m_Data;
  9. //Ěĺňîäű:
  10. Node() :pPrev(nullptr), pNext(nullptr) {}//(Head, Tail)
  11. Node(Node* Prev /*enum*/, const Circle*);//new Node Ťďîäęëţ÷ŕĺňń˙ť â ńďčńîę.
  12. ~Node();//Ťčńęëţ÷čňüť Node čç ńďčńęŕ
  13. friend class List;
  14. friend std::ostream& operator<<(std::ostream& os, const Node& node);
  15. friend std::ostream& operator<<(std::ostream& os, const List& list);
  16. /*friend List& operator>>(std::ifstream& is, List& list);*/
  17. };
  18. std::ostream& operator<<(std::ostream& os, const Node& node);