MCPcopy Create free account
hub / github.com/ArashPartow/exprtk / results_to_string

Function results_to_string

exprtk_test.cpp:10286–10313  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

10284
10285template <typename T>
10286inline std::string results_to_string(const exprtk::results_context<T>& results)
10287{
10288 typedef exprtk::results_context<T> results_context_t;
10289 typedef typename results_context_t::type_store_t type_t;
10290
10291 std::string res_str;
10292
10293 for (std::size_t i = 0; i < results.count(); ++i)
10294 {
10295 type_t t = results[i];
10296
10297 switch (t.type)
10298 {
10299 case type_t::e_scalar : res_str += 'T';
10300 break;
10301
10302 case type_t::e_vector : res_str += 'V';
10303 break;
10304
10305 case type_t::e_string : res_str += 'S';
10306 break;
10307
10308 default : continue;
10309 }
10310 }
10311
10312 return res_str;
10313}
10314
10315template <typename T>
10316inline bool result_equal(const exprtk::results_context<T>& results, const T& value)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected