-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathFullMatrix.h
More file actions
67 lines (51 loc) · 1.6 KB
/
FullMatrix.h
File metadata and controls
67 lines (51 loc) · 1.6 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
//!
//! \file FullMatrix.h
//! \author Simon Vivier, Jean Marliere, Maxime Dapp
//! \version 1.0
//! \brief Fichier de déclaration de la classe FullMatrix. Définit les matrices pleines et leurs possibilités d'utilisation.
//!
// --------------------------------
#ifndef FULLMATRIX_H
#define FULLMATRIX_H
#include <iostream>
#include <string>
// --------------------------------
using namespace std;
// --------------------------------
//!
//! \class FullMatrix
//! \author Simon Vivier, Jean Marliere, Maxime Dapp
//! \brief Cette classe définit ce qu'est une matrice pleine, ses accesseurs, ainsi que les surcharges d'opérateurs associées.
//!
class FullMatrix
{
private:
int** fullMatrix_m;
int fullMatrix_height;
int fullMatrix_width;
public:
FullMatrix();
FullMatrix(int height, int width);
FullMatrix(string path);
FullMatrix(FullMatrix& m2);
~FullMatrix();
int FullMatrix_getHeight();
int FullMatrix_getWidth();
int FullMatrix_getValue(int x, int y);
void FullMatrix_setHeight(int value);
void FullMatrix_setWidth(int value);
void FullMatrix_setValue(int x, int y, int value);
void FullMatrix_display();
void FullMatrix_clear();
void FullMatrix_setEmptyMatrix(int height, int width);
bool FullMatrix_loadMatrix(string matrixName);
bool FullMatrix_saveMatrix(string matrixName);
void FullMatrix_random();
FullMatrix& operator+(FullMatrix& m2);
void operator+=(FullMatrix& m2);
FullMatrix& operator-(FullMatrix& m2);
void operator-=(FullMatrix& m2);
FullMatrix& operator=(FullMatrix& m2);
FullMatrix& operator*(FullMatrix& m2);
};
#endif