43 #ifndef TRANSLATOR_HPP 44 #define TRANSLATOR_HPP 56 #include <boost/preprocessor/facilities/empty.hpp> 57 #include <boost/preprocessor/seq/for_each.hpp> 68 #define TEXT_FORMAT (text)(number)(exponential) 70 #define TF_ENUM(r, data, elem) BOOST_PP_CAT(TF_, elem), 72 #define COMPARISON_OPERATOR (abs_le) 74 #define CO_ENUM(r, data, elem) BOOST_PP_CAT(CO_, elem), 76 #define TOTAL_FORMAT (average)(overall)(none) 78 #define TOF_ENUM(r, data, elem) BOOST_PP_CAT(TOF_, elem), 202 size_t& max_column_width)
const;
222 const std::string& file_name)
const;
230 const std::string& file_name)
const;
243 const std::string& file_name)
const;
REF_FORWARD_DECL(XMLDomParser)
CONSTREF_FORWARD_DECL(Parameter)
void merge_pa(const std::map< std::string, CustomOrderedSet< std::string >> &tags, const CustomUnorderedMap< std::string, CustomOrderedSet< std::string >> &keys, const CustomUnorderedMap< std::string, CustomUnorderedMapStable< std::string, CustomUnorderedMapStable< std::string, long double >>> &input_data, const CustomUnorderedMap< std::string, CustomUnorderedMapStable< std::string, CustomUnorderedMapStable< std::string, long double >>> &merge_data, CustomUnorderedMap< std::string, CustomUnorderedMapStable< std::string, CustomUnorderedMapStable< std::string, long double >>> &output_data) const
Merget profiling analysis.
static void replace_underscore(std::string &ioString)
Replace '_' with ' '.
int debug_level
the debug level
void write_to_latex(std::map< std::string, CustomMap< std::string, std::string >> &results, const Parameters_FileFormat input_format, const std::string &file_name) const
Write data in latex table format.
CustomOrderedMap< T, U > CustomMap
#define COMPARISON_OPERATOR
#define CO_ENUM(r, data, elem)
void read_column_formats(const XMLDomParserRef parser, std::list< LatexColumnFormat > &latex_column_formats, size_t &max_column_width) const
Read latex column format from xml.
redefinition of map to manage ordered/unordered structures
void get_normalization(CustomUnorderedMap< std::string, long double > &normalization) const
Read normalization file.
std::string get_exponential_notation(const std::string &input) const
Return a number in latex exponential notation.
const ParameterConstRef Param
the set of parameters
unsigned map[NUM_VERTICES]
absl::flat_hash_map< T, U, Hash, Eq, Alloc > CustomUnorderedMap
redefinition of set to manage ordered/unordered structures
void write_to_csv(const std::map< std::string, CustomOrderedSet< std::string >> &tags, const CustomUnorderedMap< std::string, CustomUnorderedMapStable< std::string, CustomUnorderedMapStable< std::string, long double >>> &results, const std::string &file_name) const
Write rtl data in csv format.
#define TOF_ENUM(r, data, elem)
Translator(const ParameterConstRef Param)
Constructor.
static void AggregateAndClean(std::map< std::string, std::map< std::string, long double >> &data, CustomOrderedSet< std::string > &column_names, const ParameterConstRef param)
Collapse columns of data considering super classes and remove selected rows.
Template definition of refcount.
Class to translate data from a format to another one.
coord_t input_data[TEST_COUNT][2]
void write_to_pa(const std::map< std::string, CustomOrderedSet< std::string >> &tags, const CustomUnorderedMap< std::string, CustomUnorderedMapStable< std::string, CustomUnorderedMapStable< std::string, long double >>> &results, const std::string &file_name) const
Write profiling analysis to pa.
#define TF_ENUM(r, data, elem)
Template borrowed from the ANTLR library by Terence Parr (http://www.jGuru.com - Software rights: htt...
Parameters_FileFormat
File formats.
absl::node_hash_map< T, U, Hash, Eq, Alloc > CustomUnorderedMapStable