C++ Mathematical Expression Toolkit (ExprTk) release
Loading...
Searching...
No Matches
exprtk::rtl::io::details::print_impl< T > Struct Template Reference

#include <exprtk.hpp>

Public Types

typedef igeneric_function< T >::generic_type generic_type
typedef igeneric_function< T >::parameter_list_t parameter_list_t
typedef generic_type::scalar_view scalar_t
typedef generic_type::vector_view vector_t
typedef generic_type::string_view string_t
typedef exprtk::details::numeric::details::number_type< T >::type num_type

Static Public Member Functions

static void process (const std::string &scalar_format, parameter_list_t parameters)
static void print (const std::string &scalar_format, const scalar_t &s)
static void print (const std::string &scalar_format, const vector_t &v)
static void print (const string_t &s)

Detailed Description

template<typename T>
struct exprtk::rtl::io::details::print_impl< T >

Definition at line 44194 of file exprtk.hpp.

Member Typedef Documentation

◆ generic_type

template<typename T>
typedef igeneric_function<T>::generic_type exprtk::rtl::io::details::print_impl< T >::generic_type

Definition at line 44196 of file exprtk.hpp.

◆ num_type

template<typename T>
typedef exprtk::details::numeric::details::number_type<T>::type exprtk::rtl::io::details::print_impl< T >::num_type

Definition at line 44201 of file exprtk.hpp.

◆ parameter_list_t

template<typename T>
typedef igeneric_function<T>::parameter_list_t exprtk::rtl::io::details::print_impl< T >::parameter_list_t

Definition at line 44197 of file exprtk.hpp.

◆ scalar_t

template<typename T>
typedef generic_type::scalar_view exprtk::rtl::io::details::print_impl< T >::scalar_t

Definition at line 44198 of file exprtk.hpp.

◆ string_t

template<typename T>
typedef generic_type::string_view exprtk::rtl::io::details::print_impl< T >::string_t

Definition at line 44200 of file exprtk.hpp.

◆ vector_t

template<typename T>
typedef generic_type::vector_view exprtk::rtl::io::details::print_impl< T >::vector_t

Definition at line 44199 of file exprtk.hpp.

Member Function Documentation

◆ print() [1/3]

template<typename T>
void exprtk::rtl::io::details::print_impl< T >::print ( const std::string & scalar_format,
const scalar_t & s )
inlinestatic

Definition at line 44225 of file exprtk.hpp.

44226 {
44228 }
void print_type(const std::string &fmt, const T v, exprtk::details::numeric::details::real_type_tag)
Definition exprtk.hpp:44170
exprtk::details::numeric::details::number_type< T >::type num_type
Definition exprtk.hpp:44201

References exprtk::rtl::io::details::print_type().

Referenced by process().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ print() [2/3]

template<typename T>
void exprtk::rtl::io::details::print_impl< T >::print ( const std::string & scalar_format,
const vector_t & v )
inlinestatic

Definition at line 44230 of file exprtk.hpp.

44231 {
44232 for (std::size_t i = 0; i < v.size(); ++i)
44233 {
44235
44236 if ((i + 1) < v.size())
44237 printf(" ");
44238 }
44239 }

References exprtk::rtl::io::details::print_type(), and exprtk::type_store< T >::type_view< ViewType >::size().

Here is the call graph for this function:

◆ print() [3/3]

template<typename T>
void exprtk::rtl::io::details::print_impl< T >::print ( const string_t & s)
inlinestatic

Definition at line 44241 of file exprtk.hpp.

44242 {
44243 printf("%s",to_str(s).c_str());
44244 }
std::string to_str(const StringView &view)
Definition exprtk.hpp:5017

References exprtk::to_str().

Here is the call graph for this function:

◆ process()

template<typename T>
void exprtk::rtl::io::details::print_impl< T >::process ( const std::string & scalar_format,
parameter_list_t parameters )
inlinestatic

Definition at line 44203 of file exprtk.hpp.

44204 {
44205 for (std::size_t i = 0; i < parameters.size(); ++i)
44206 {
44208
44209 switch (gt.type)
44210 {
44212 break;
44213
44215 break;
44216
44218 break;
44219
44220 default : continue;
44221 }
44222 }
44223 }
generic_type::string_view string_t
Definition exprtk.hpp:44200
igeneric_function< T >::generic_type generic_type
Definition exprtk.hpp:44196
static void print(const std::string &scalar_format, const scalar_t &s)
Definition exprtk.hpp:44225
generic_type::scalar_view scalar_t
Definition exprtk.hpp:44198
generic_type::vector_view vector_t
Definition exprtk.hpp:44199

References exprtk::type_store< T >::e_scalar, exprtk::type_store< T >::e_string, exprtk::type_store< T >::e_vector, print(), exprtk::type_store< T >::parameter_list::size(), and exprtk::type_store< T >::type.

Referenced by exprtk::rtl::io::print< T >::operator()(), and exprtk::rtl::io::println< T >::operator()().

Here is the call graph for this function:
Here is the caller graph for this function:

The documentation for this struct was generated from the following file: