Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Romain De Laage De Bellefaye
LO21-projet
Commits
6084a789
Commit
6084a789
authored
Jun 03, 2021
by
Boris Cazic
Browse files
Voisinage
parent
3a6f28a0
Pipeline
#79057
passed with stage
in 15 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
includes/voisinage.h
View file @
6084a789
...
...
@@ -8,19 +8,16 @@
#ifndef voisinage_h
#define voisinage_h
#include
"reseau_cellule_etats.h"
#include
<stdio.h>
#include
<iostream>
#include
"reseau_cellule_etats.h"
#include
<string.h>
#include
<vector>
using
namespace
std
;
class
Voisinage
{
private
:
const
Cellule
*
celluleCentre
;
vector
<
Cellule
*>
voisinage
;
unsigned
int
r
;
...
...
@@ -50,16 +47,13 @@ public:
return
(
vsn
->
voisinage
.
size
()
<=
i
);
}
Cellule
*
currentItem
(){
return
vsn
->
voisinage
[
i
];
}
};
Voisinage
(
);
Voisinage
(
const
Cellule
*
centre
,
vector
<
Cellule
*>
v
)
:
celluleCentre
(
centre
),
voisinage
(
v
)
{}
~
Voisinage
();
Cellule
getCelluleCentre
()
const
{
return
*
celluleCentre
;}
void
setr
(
unsigned
int
rayon
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment