C++ Mathematical Expression Toolkit (ExprTk) release
Loading...
Searching...
No Matches
Classes | Functions
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 44040 of file exprtk.hpp.

44043 {
44044 #if defined(__clang__)
44045 #pragma clang diagnostic push
44046 #pragma clang diagnostic ignored "-Wformat-nonliteral"
44047 #elif defined(__GNUC__) || defined(__GNUG__)
44048 #pragma GCC diagnostic push
44049 #pragma GCC diagnostic ignored "-Wformat-nonliteral"
44050 #elif defined(_MSC_VER)
44051 #endif
44052
44053 printf(fmt.c_str(), v);
44054
44055 #if defined(__clang__)
44056 #pragma clang diagnostic pop
44057 #elif defined(__GNUC__) || defined(__GNUG__)
44058 #pragma GCC diagnostic pop
44059 #elif defined(_MSC_VER)
44060 #endif
44061 }

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: