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 382 of file exprtk_mpfr_adaptor.hpp.

383 {
384 #if defined(__clang__)
385 #pragma clang diagnostic push
386 #pragma clang diagnostic ignored "-Wformat-nonliteral"
387 #elif defined(__GNUC__) || defined(__GNUG__)
388 #pragma GCC diagnostic push
389 #pragma GCC diagnostic ignored "-Wformat-nonliteral"
390 #elif defined(_MSC_VER)
391 #endif
392
393 printf("%s",v.toString().c_str());
394
395 #if defined(__clang__)
396 #pragma clang diagnostic pop
397 #elif defined(__GNUC__) || defined(__GNUG__)
398 #pragma GCC diagnostic pop
399 #elif defined(_MSC_VER)
400 #endif
401 }

◆ 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 357 of file exprtk_real_adaptor.hpp.

358 {
359 #if defined(__clang__)
360 #pragma clang diagnostic push
361 #pragma clang diagnostic ignored "-Wformat-nonliteral"
362 #elif defined(__GNUC__) || defined(__GNUG__)
363 #pragma GCC diagnostic push
364 #pragma GCC diagnostic ignored "-Wformat-nonliteral"
365 #elif defined(_MSC_VER)
366 #endif
367
368 printf(fmt.c_str(),static_cast<double>(v));
369
370 #if defined(__clang__)
371 #pragma clang diagnostic pop
372 #elif defined(__GNUC__) || defined(__GNUG__)
373 #pragma GCC diagnostic pop
374 #elif defined(_MSC_VER)
375 #endif
376 }

◆ 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 43547 of file exprtk.hpp.

43550 {
43551 #if defined(__clang__)
43552 #pragma clang diagnostic push
43553 #pragma clang diagnostic ignored "-Wformat-nonliteral"
43554 #elif defined(__GNUC__) || defined(__GNUG__)
43555 #pragma GCC diagnostic push
43556 #pragma GCC diagnostic ignored "-Wformat-nonliteral"
43557 #elif defined(_MSC_VER)
43558 #endif
43559
43560 printf(fmt.c_str(), v);
43561
43562 #if defined(__clang__)
43563 #pragma clang diagnostic pop
43564 #elif defined(__GNUC__) || defined(__GNUG__)
43565 #pragma GCC diagnostic pop
43566 #elif defined(_MSC_VER)
43567 #endif
43568 }

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: