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

Public Types

typedef opr_base< T >::Type Type
 
- Public Types inherited from exprtk::details::opr_base< T >
typedef details::functor_t< T >::Type Type
 
typedef details::functor_t< T >::RefType RefType
 
typedef details::functor_t< Tfunctor_t
 
typedef functor_t::qfunc_t quaternary_functor_t
 
typedef functor_t::tfunc_t trinary_functor_t
 
typedef functor_t::bfunc_t binary_functor_t
 
typedef functor_t::ufunc_t unary_functor_t
 

Static Public Member Functions

template<typename Type , typename Allocator , template< typename, typename > class Sequence>
static T process (const Sequence< Type, Allocator > &arg_list)
 
template<typename Sequence >
static T process_1 (const Sequence &arg_list)
 
template<typename Sequence >
static T process_2 (const Sequence &arg_list)
 
template<typename Sequence >
static T process_3 (const Sequence &arg_list)
 
template<typename Sequence >
static T process_4 (const Sequence &arg_list)
 
template<typename Sequence >
static T process_5 (const Sequence &arg_list)
 

Detailed Description

template<typename T>
struct exprtk::details::vararg_avg_op< T >

Definition at line 15907 of file exprtk.hpp.

Member Typedef Documentation

◆ Type

Definition at line 15909 of file exprtk.hpp.

Member Function Documentation

◆ process()

template<typename T >
static T exprtk::details::vararg_avg_op< T >::process ( const Sequence< Type, Allocator > &  arg_list)
inlinestatic

Definition at line 15914 of file exprtk.hpp.

15915 {
15916 switch (arg_list.size())
15917 {
15918 case 0 : return T(0);
15919 case 1 : return process_1(arg_list);
15920 case 2 : return process_2(arg_list);
15921 case 3 : return process_3(arg_list);
15922 case 4 : return process_4(arg_list);
15923 case 5 : return process_5(arg_list);
15925 }
15926 }
bool match_impl(const Iterator pattern_begin, const Iterator pattern_end, const Iterator data_begin, const Iterator data_end, const typename std::iterator_traits< Iterator >::value_type &zero_or_more, const typename std::iterator_traits< Iterator >::value_type &exactly_one)
Definition exprtk.hpp:598
static T process(const Sequence< Type, Allocator > &arg_list)
Definition exprtk.hpp:15780
static T process_5(const Sequence &arg_list)
Definition exprtk.hpp:15954
static T process_1(const Sequence &arg_list)
Definition exprtk.hpp:15929
static T process_2(const Sequence &arg_list)
Definition exprtk.hpp:15935
static T process_3(const Sequence &arg_list)
Definition exprtk.hpp:15941
static T process_4(const Sequence &arg_list)
Definition exprtk.hpp:15947

References exprtk::details::match_impl(), exprtk::details::vararg_add_op< T >::process(), exprtk::details::vararg_avg_op< T >::process_1(), exprtk::details::vararg_avg_op< T >::process_2(), exprtk::details::vararg_avg_op< T >::process_3(), exprtk::details::vararg_avg_op< T >::process_4(), and exprtk::details::vararg_avg_op< T >::process_5().

Here is the call graph for this function:

◆ process_1()

template<typename T >
template<typename Sequence >
static T exprtk::details::vararg_avg_op< T >::process_1 ( const Sequence arg_list)
inlinestatic

Definition at line 15929 of file exprtk.hpp.

15930 {
15931 return value(arg_list[0]);
15932 }
T value(details::expression_node< T > *n)
Definition exprtk.hpp:15749

References exprtk::details::match_impl(), and exprtk::details::value().

Referenced by exprtk::details::vararg_avg_op< T >::process().

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

◆ process_2()

template<typename T >
template<typename Sequence >
static T exprtk::details::vararg_avg_op< T >::process_2 ( const Sequence arg_list)
inlinestatic

Definition at line 15935 of file exprtk.hpp.

15936 {
15937 return (value(arg_list[0]) + value(arg_list[1])) / T(2);
15938 }

References exprtk::details::match_impl(), and exprtk::details::value().

Referenced by exprtk::details::vararg_avg_op< T >::process().

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

◆ process_3()

template<typename T >
template<typename Sequence >
static T exprtk::details::vararg_avg_op< T >::process_3 ( const Sequence arg_list)
inlinestatic

Definition at line 15941 of file exprtk.hpp.

15942 {
15943 return (value(arg_list[0]) + value(arg_list[1]) + value(arg_list[2])) / T(3);
15944 }

References exprtk::details::match_impl(), and exprtk::details::value().

Referenced by exprtk::details::vararg_avg_op< T >::process().

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

◆ process_4()

template<typename T >
template<typename Sequence >
static T exprtk::details::vararg_avg_op< T >::process_4 ( const Sequence arg_list)
inlinestatic

Definition at line 15947 of file exprtk.hpp.

15948 {
15949 return (value(arg_list[0]) + value(arg_list[1]) +
15950 value(arg_list[2]) + value(arg_list[3])) / T(4);
15951 }

References exprtk::details::match_impl(), and exprtk::details::value().

Referenced by exprtk::details::vararg_avg_op< T >::process().

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

◆ process_5()

template<typename T >
template<typename Sequence >
static T exprtk::details::vararg_avg_op< T >::process_5 ( const Sequence arg_list)
inlinestatic

Definition at line 15954 of file exprtk.hpp.

15955 {
15956 return (value(arg_list[0]) + value(arg_list[1]) +
15957 value(arg_list[2]) + value(arg_list[3]) +
15958 value(arg_list[4])) / T(5);
15959 }

References exprtk::details::match_impl(), and exprtk::details::value().

Referenced by exprtk::details::vararg_avg_op< T >::process().

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: