Program Listing for File NumUniqueModuleRegulationProfilesPill.hpp¶
↰ Return to documentation for file (include/dish2/web/data_pills/NumUniqueModuleRegulationProfilesPill.hpp)
#pragma once
#ifndef DISH2_WEB_DATA_PILLS_NUMUNIQUEMODULEREGULATIONPROFILESPILL_HPP_INCLUDE
#define DISH2_WEB_DATA_PILLS_NUMUNIQUEMODULEREGULATIONPROFILESPILL_HPP_INCLUDE
#include "../../../../third-party/Empirical/include/emp/tools/string_utils.hpp"
#include "../../introspection/count_unique_module_regulation_profiles.hpp"
#include "../../world/ThreadWorld.hpp"
#include "../DataPill.hpp"
namespace dish2 {
template< typename Spec >
class NumUniqueModuleRegulationProfilesPill {
static auto DoWork( const ThreadWorld<Spec>& world ) {
return dish2::count_unique_module_regulation_profiles<Spec>( world );
}
public:
static emp::web::Div Make( const ThreadWorld<Spec>& world ) {
return dish2::DataPill(
"Num Unique Module Regulation Profiles",
[&world](){ return emp::to_string( DoWork( world ) ); },
"TODO"
);
}
};
} // namespace dish2
#endif // #ifndef DISH2_WEB_DATA_PILLS_NUMUNIQUEMODULEREGULATIONPROFILESPILL_HPP_INCLUDE