SimGrid
3.16
Versatile Simulation of Distributed Systems
|
#include "smpi/smpi_utils.hpp"
#include "xbt/sysdep.h"
#include "xbt/log.h"
#include "xbt/str.h"
#include <boost/tokenizer.hpp>
Functions | |
XBT_LOG_NEW_DEFAULT_SUBCATEGORY (smpi_utils, smpi, "Logging specific to SMPI (utils)") | |
std::vector< s_smpi_factor_t > | parse_factor (const char *smpi_coef_string) |
XBT_LOG_NEW_DEFAULT_SUBCATEGORY | ( | smpi_utils | , |
smpi | , | ||
"Logging specific to SMPI (utils)" | |||
) |
std::vector<s_smpi_factor_t> parse_factor | ( | const char * | smpi_coef_string | ) |
Setup the tokenizer that parses the string
Iterate over patterns like A:B:C:D;E:F;G:H These will be broken down into: A –> B, C, D E –> F G –> H