/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* cost.h :+: :+: :+: */ /* +:+ +:+ +:+ */ /* By: maiboyer +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* 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 */