Guest User

Untitled

a guest
Jan 11th, 2018
116
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.87 KB | None | 0 0
  1. #ifndef MATRIX_HPP_
  2. #define MATRIX_HPP_
  3.  
  4. #include <iostream>
  5. #include <cstdlib>
  6. #include <cmath>
  7. #include <fstream>
  8.  
  9. using namespace std;
  10.  
  11. class bad_index{};
  12. class wrong_size{};
  13. class wrong_file_name{};
  14. class different_sizes{};
  15.  
  16. class Matrix
  17. {
  18. private:
  19. struct rcMatrix;
  20. rcMatrix* data;
  21. public:
  22. Matrix(const char*);
  23. Matrix(int, int);
  24. Matrix(const Matrix&);
  25. ~Matrix();
  26. double operator()(int, int) const;
  27. friend ostream& operator<<(ostream&, const Matrix&);
  28. bool operator==(const Matrix&) const;
  29. Matrix& operator=(const Matrix&);
  30. Matrix operator+(const Matrix&) const;
  31. Matrix& operator+=(const Matrix&);
  32. Matrix operator-(const Matrix&) const;
  33. Matrix& operator-=(const Matrix&);
  34. Matrix operator*(const Matrix&) const;
  35. Matrix& operator*=(const Matrix&);
  36. int getRefCounter() const;
  37. };
  38.  
  39. #endif
Add Comment
Please, Sign In to add comment