From 084eda63f38c196af0cb79cf7d38f8512b3014b9 Mon Sep 17 00:00:00 2001 From: "James P. Howard, II" Date: Tue, 2 Aug 2022 14:20:57 -0400 Subject: [PATCH] Updates to population definition --- include/kami/population.h | 1 + src/libkami/population.cc | 7 ++++--- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/include/kami/population.h b/include/kami/population.h index 180048f..de6c7ad 100644 --- a/include/kami/population.h +++ b/include/kami/population.h @@ -28,6 +28,7 @@ #define KAMI_POPULATION_H #include +#include #include #include diff --git a/src/libkami/population.cc b/src/libkami/population.cc index 0be38ec..f7b646b 100644 --- a/src/libkami/population.cc +++ b/src/libkami/population.cc @@ -23,6 +23,7 @@ * SOFTWARE. */ +#include #include #include @@ -43,7 +44,7 @@ namespace kami { _agent_map.insert(std::pair>(agent->get_agent_id(), agent)); } - [[maybe_unused]] void Population::delete_agent(const AgentID agent_id) { + void Population::delete_agent(const AgentID agent_id) { auto agent_it = _agent_map.find(agent_id); if(agent_it != _agent_map.end()) _agent_map.erase(agent_it); @@ -64,11 +65,11 @@ namespace kami { return std::move(agent_ids); } - [[maybe_unused]] std::shared_ptr Population::get_model() { + std::shared_ptr Population::get_model() { return(_model); } - [[maybe_unused]] void Population::set_model(std::shared_ptr model) { + void Population::set_model(std::shared_ptr model) { _model = std::move(model); }