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

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

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

377 {
378 #if defined(__clang__)
379 #pragma clang diagnostic push
380 #pragma clang diagnostic ignored "-Wformat-nonliteral"
381 #elif defined(__GNUC__) || defined(__GNUG__)
382 #pragma GCC diagnostic push
383 #pragma GCC diagnostic ignored "-Wformat-nonliteral"
384 #elif defined(_MSC_VER)
385 #endif
386
387 printf(fmt.c_str(),static_cast<double>(v));
388
389 #if defined(__clang__)
390 #pragma clang diagnostic pop
391 #elif defined(__GNUC__) || defined(__GNUG__)
392 #pragma GCC diagnostic pop
393 #elif defined(_MSC_VER)
394 #endif
395 }

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

41960 {
41961 #if defined(__clang__)
41962 #pragma clang diagnostic push
41963 #pragma clang diagnostic ignored "-Wformat-nonliteral"
41964 #elif defined(__GNUC__) || defined(__GNUG__)
41965 #pragma GCC diagnostic push
41966 #pragma GCC diagnostic ignored "-Wformat-nonliteral"
41967 #elif defined(_MSC_VER)
41968 #endif
41969
41970 printf(fmt.c_str(), v);
41971
41972 #if defined(__clang__)
41973 #pragma clang diagnostic pop
41974 #elif defined(__GNUC__) || defined(__GNUG__)
41975 #pragma GCC diagnostic pop
41976 #elif defined(_MSC_VER)
41977 #endif
41978 }

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: