32 lines
1.3 KiB
C
32 lines
1.3 KiB
C
/* ************************************************************************** */
|
|
/* */
|
|
/* ::: :::::::: */
|
|
/* cost.h :+: :+: :+: */
|
|
/* +:+ +:+ +:+ */
|
|
/* By: maiboyer <maiboyer@student.42.fr> +#+ +:+ +#+ */
|
|
/* +#+#+#+#+#+ +#+ */
|
|
/* Created: 2024/01/12 21:13:51 by maiboyer #+# #+# */
|
|
/* Updated: 2024/01/17 15:32:25 by maiboyer ### ########.fr */
|
|
/* */
|
|
/* ************************************************************************** */
|
|
|
|
#ifndef COST_H
|
|
# define COST_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);
|
|
t_cost *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 */
|