yes
This commit is contained in:
parent
54a5b658d4
commit
33db892d3b
11 changed files with 233 additions and 38 deletions
32
include/app/cost.h
Normal file
32
include/app/cost.h
Normal file
|
|
@ -0,0 +1,32 @@
|
|||
/* ************************************************************************** */
|
||||
/* */
|
||||
/* ::: :::::::: */
|
||||
/* cost.h :+: :+: :+: */
|
||||
/* +:+ +:+ +:+ */
|
||||
/* By: maiboyer <maiboyer@student.42.fr> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2024/01/12 21:13:51 by maiboyer #+# #+# */
|
||||
/* Updated: 2024/01/12 23:37:23 by maiboyer ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
#ifndef COST_H
|
||||
#define COST_H
|
||||
|
||||
#include "app/element.h"
|
||||
#include "app/state.h"
|
||||
#include "app/types/type_cost.h"
|
||||
#include "me/types.h"
|
||||
|
||||
t_cost alloc_cost(t_state *s);
|
||||
void free_cost(t_cost self);
|
||||
void calculate_cost(t_state *s);
|
||||
void cost_for_index(t_state *s, t_usize index);
|
||||
|
||||
typedef struct s_cost_iter_state
|
||||
{
|
||||
t_cost *current_minimum;
|
||||
t_usize max_index;
|
||||
} t_cost_iter_state;
|
||||
|
||||
#endif /* COST_H */
|
||||
Loading…
Add table
Add a link
Reference in a new issue