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 6126 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 6128 of file exprtk_mpfr_test.cpp.

6129 {
6131 exprtk::set_min_num_args(*this, 0);
6132 exprtk::set_max_num_args(*this, 20);
6133 }
void enable_zero_parameters(FunctionType &func)
Definition exprtk.hpp:19736
void set_max_num_args(FunctionType &func, const std::size_t &num_args)
Definition exprtk.hpp:19774
void set_min_num_args(FunctionType &func, const std::size_t &num_args)
Definition exprtk.hpp:19765

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 6125 of file exprtk_real_test.cpp.

6126 {
6128 exprtk::set_min_num_args(*this, 0);
6129 exprtk::set_max_num_args(*this, 20);
6130 }

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 6145 of file exprtk_test.cpp.

6146 {
6148 exprtk::set_min_num_args(*this, 0);
6149 exprtk::set_max_num_args(*this, 20);
6150 }

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 6135 of file exprtk_mpfr_test.cpp.

6136 {
6137 T result = T(0);
6138
6139 for (std::size_t i = 0; i < arglist.size(); ++i)
6140 {
6141 result += arglist[i];
6142 }
6143
6144 return result;
6145 }

◆ 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 6132 of file exprtk_real_test.cpp.

6133 {
6134 T result = T(0);
6135
6136 for (std::size_t i = 0; i < arglist.size(); ++i)
6137 {
6138 result += arglist[i];
6139 }
6140
6141 return result;
6142 }

◆ 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 6152 of file exprtk_test.cpp.

6153 {
6154 T result = T(0);
6155
6156 for (std::size_t i = 0; i < arglist.size(); ++i)
6157 {
6158 result += arglist[i];
6159 }
6160
6161 return result;
6162 }

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