C++ Mathematical Expression Toolkit (ExprTk) release
Loading...
Searching...
No Matches
exprtk::rtl::io::details Namespace Reference

Classes

struct  print_impl

Functions

template<typename T>
void print_type (const std::string &fmt, const T v, exprtk::details::numeric::details::real_type_tag)
void print_type (const std::string &fmt, const cmplx::complex_t &v, exprtk::details::numeric::details::complex_type_tag)
void print_type (const std::string &fmt, const cmplx::complex_t v, exprtk::details::numeric::details::complex_type_tag)
void print_type (const std::string &, const mpfr::mpreal &v, exprtk::details::numeric::details::mpfrreal_type_tag)
void print_type (const std::string &fmt, const real::type &v, exprtk::details::numeric::details::my_real_type_tag)

Function Documentation

◆ print_type() [1/5]

void exprtk::rtl::io::details::print_type ( const std::string & ,
const mpfr::mpreal & v,
exprtk::details::numeric::details::mpfrreal_type_tag  )
inline

Definition at line 390 of file exprtk_mpfr_adaptor.hpp.

391 {
392 #if defined(__clang__)
393 #pragma clang diagnostic push
394 #pragma clang diagnostic ignored "-Wformat-nonliteral"
395 #elif defined(__GNUC__) || defined(__GNUG__)
396 #pragma GCC diagnostic push
397 #pragma GCC diagnostic ignored "-Wformat-nonliteral"
398 #elif defined(_MSC_VER)
399 #endif
400
401 printf("%s",v.toString().c_str());
402
403 #if defined(__clang__)
404 #pragma clang diagnostic pop
405 #elif defined(__GNUC__) || defined(__GNUG__)
406 #pragma GCC diagnostic pop
407 #elif defined(_MSC_VER)
408 #endif
409 }

◆ print_type() [2/5]

void exprtk::rtl::io::details::print_type ( const std::string & fmt,
const cmplx::complex_t & v,
exprtk::details::numeric::details::complex_type_tag  )
inline

◆ print_type() [3/5]

void exprtk::rtl::io::details::print_type ( const std::string & fmt,
const cmplx::complex_t v,
exprtk::details::numeric::details::complex_type_tag  )
inline

Definition at line 382 of file exprtk_complex_adaptor.hpp.

383 {
384 printf(fmt.c_str(),(double)v.c_.real(), (double)v.c_.imag());
385 }
std::complex< double > c_

References cmplx::complex_t::c_.

◆ print_type() [4/5]

void exprtk::rtl::io::details::print_type ( const std::string & fmt,
const real::type & v,
exprtk::details::numeric::details::my_real_type_tag  )
inline

Definition at line 365 of file exprtk_real_adaptor.hpp.

366 {
367 #if defined(__clang__)
368 #pragma clang diagnostic push
369 #pragma clang diagnostic ignored "-Wformat-nonliteral"
370 #elif defined(__GNUC__) || defined(__GNUG__)
371 #pragma GCC diagnostic push
372 #pragma GCC diagnostic ignored "-Wformat-nonliteral"
373 #elif defined(_MSC_VER)
374 #endif
375
376 printf(fmt.c_str(),static_cast<double>(v));
377
378 #if defined(__clang__)
379 #pragma clang diagnostic pop
380 #elif defined(__GNUC__) || defined(__GNUG__)
381 #pragma GCC diagnostic pop
382 #elif defined(_MSC_VER)
383 #endif
384 }

◆ print_type() [5/5]

template<typename T>
void exprtk::rtl::io::details::print_type ( const std::string & fmt,
const T v,
exprtk::details::numeric::details::real_type_tag  )
inline

Definition at line 44170 of file exprtk.hpp.

44173 {
44174 #if defined(__clang__)
44175 #pragma clang diagnostic push
44176 #pragma clang diagnostic ignored "-Wformat-nonliteral"
44177 #elif defined(__GNUC__) || defined(__GNUG__)
44178 #pragma GCC diagnostic push
44179 #pragma GCC diagnostic ignored "-Wformat-nonliteral"
44180 #elif defined(_MSC_VER)
44181 #endif
44182
44183 printf(fmt.c_str(), v);
44184
44185 #if defined(__clang__)
44186 #pragma clang diagnostic pop
44187 #elif defined(__GNUC__) || defined(__GNUG__)
44188 #pragma GCC diagnostic pop
44189 #elif defined(_MSC_VER)
44190 #endif
44191 }

Referenced by exprtk::rtl::io::details::print_impl< T >::print(), exprtk::rtl::io::details::print_impl< T >::print(), and expression_processor< T >::print_results().

Here is the caller graph for this function: