C++ Mathematical Expression Toolkit (ExprTk) release
Loading...
Searching...
No Matches
Public Member Functions | List of all members
va_func< T > Struct Template Reference
Inheritance diagram for va_func< T >:
[legend]
Collaboration diagram for va_func< T >:
[legend]

Public Member Functions

 va_func ()
 
operator() (const std::vector< T > &arglist)
 
 va_func ()
 
operator() (const std::vector< T > &arglist)
 
 va_func ()
 
operator() (const std::vector< T > &arglist)
 
- Public Member Functions inherited from exprtk::ivararg_function< T >
virtual ~ivararg_function ()
 
- Public Member Functions inherited from exprtk::function_traits
 function_traits ()
 
bool & allow_zero_parameters ()
 
bool & has_side_effects ()
 
std::size_t & min_num_args ()
 
std::size_t & max_num_args ()
 

Detailed Description

template<typename T>
struct va_func< T >

Definition at line 6077 of file exprtk_mpfr_test.cpp.

Constructor & Destructor Documentation

◆ va_func() [1/3]

template<typename T >
va_func< T >::va_func ( )
inline

Definition at line 6079 of file exprtk_mpfr_test.cpp.

6080 {
6082 exprtk::set_min_num_args(*this, 0);
6083 exprtk::set_max_num_args(*this, 20);
6084 }
void enable_zero_parameters(FunctionType &func)
Definition exprtk.hpp:19497
void set_max_num_args(FunctionType &func, const std::size_t &num_args)
Definition exprtk.hpp:19535
void set_min_num_args(FunctionType &func, const std::size_t &num_args)
Definition exprtk.hpp:19526

References exprtk::enable_zero_parameters(), exprtk::set_max_num_args(), and exprtk::set_min_num_args().

Here is the call graph for this function:

◆ va_func() [2/3]

template<typename T >
va_func< T >::va_func ( )
inline

Definition at line 6076 of file exprtk_real_test.cpp.

6077 {
6079 exprtk::set_min_num_args(*this, 0);
6080 exprtk::set_max_num_args(*this, 20);
6081 }

References exprtk::enable_zero_parameters(), exprtk::set_max_num_args(), and exprtk::set_min_num_args().

Here is the call graph for this function:

◆ va_func() [3/3]

template<typename T >
va_func< T >::va_func ( )
inline

Definition at line 6104 of file exprtk_test.cpp.

6105 {
6107 exprtk::set_min_num_args(*this, 0);
6108 exprtk::set_max_num_args(*this, 20);
6109 }

References exprtk::enable_zero_parameters(), exprtk::set_max_num_args(), and exprtk::set_min_num_args().

Here is the call graph for this function:

Member Function Documentation

◆ operator()() [1/3]

template<typename T >
T va_func< T >::operator() ( const std::vector< T > &  arglist)
inlinevirtual

Reimplemented from exprtk::ivararg_function< T >.

Definition at line 6086 of file exprtk_mpfr_test.cpp.

6087 {
6088 T result = T(0);
6089
6090 for (std::size_t i = 0; i < arglist.size(); ++i)
6091 {
6092 result += arglist[i];
6093 }
6094
6095 return result;
6096 }

◆ operator()() [2/3]

template<typename T >
T va_func< T >::operator() ( const std::vector< T > &  arglist)
inlinevirtual

Reimplemented from exprtk::ivararg_function< T >.

Definition at line 6083 of file exprtk_real_test.cpp.

6084 {
6085 T result = T(0);
6086
6087 for (std::size_t i = 0; i < arglist.size(); ++i)
6088 {
6089 result += arglist[i];
6090 }
6091
6092 return result;
6093 }

◆ operator()() [3/3]

template<typename T >
T va_func< T >::operator() ( const std::vector< T > &  arglist)
inlinevirtual

Reimplemented from exprtk::ivararg_function< T >.

Definition at line 6111 of file exprtk_test.cpp.

6112 {
6113 T result = T(0);
6114
6115 for (std::size_t i = 0; i < arglist.size(); ++i)
6116 {
6117 result += arglist[i];
6118 }
6119
6120 return result;
6121 }

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