Skip to content
GitLab
Menu
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
73197705
Commit
73197705
authored
Jun 05, 2021
by
Maxime Goret
Browse files
Implémentation voisinage arbitraire
parents
a8e07738
d78cce4e
Changes
3
Hide whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
→
.gitlab-ci.yml
.old
View file @
73197705
File moved
includes/Automate.h
View file @
73197705
...
...
@@ -44,7 +44,8 @@ class Automate {
void
previous
()
{
if
(
itBuffer
!=
buffer
.
begin
())
itBuffer
--
;
}
void
next
()
{
if
(
itBuffer
!=
buffer
.
end
())
itBuffer
++
;
}
void
reset
()
{
itBuffer
=
buffer
.
begin
();
}
void
reset
()
{
itBuffer
=
buffer
.
begin
();
}
/// L'automate revient au premier état du buffer
void
reset
(
const
Reseau
&
r
)
{
buffer
.
clear
();
buffer
.
push_back
(
r
);
}
/// On vide la buffer et on l'initialise avec une première grille
void
step
()
{
if
(
isRunning
)
{
if
(
itBuffer
==
buffer
.
end
())
nextTimer
();
itBuffer
++
;}
}
void
run
(
int
n
)
{
for
(
int
i
=
0
;
i
<
n
;
i
++
)
step
();
}
...
...
src/voisinage.cpp
View file @
73197705
...
...
@@ -199,8 +199,12 @@ Voisinage::~Voisinage() {
}
<<<<<<<
HEAD
void
calculVoisinage
(
Voisinage
&
v
,
const
Reseau
r
,
Coordonnees
co
){
=======
void
RegleVoisinageArbitraire
::
calculVoisinage
(
Voisinage
&
v
,
const
Reseau
&
r
)
{
//définir get?
>>>>>>>
d78cce4e7d49623a3ddb5aa18db685438295923d
v
.
voisinage
=
std
::
vector
<
Cellule
*>
();
unsigned
int
abs
=
v
.
celluleCentre
->
abs
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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