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

#include <exprtk.hpp>

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< T > functor_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 16186 of file exprtk.hpp.

Member Typedef Documentation

◆ Type

template<typename T>
typedef opr_base<T>::Type exprtk::details::vararg_avg_op< T >::Type

Definition at line 16188 of file exprtk.hpp.

Member Function Documentation

◆ process()

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

Definition at line 16193 of file exprtk.hpp.

16194 {
16195 switch (arg_list.size())
16196 {
16197 case 0 : return T(0);
16198 case 1 : return process_1(arg_list);
16199 case 2 : return process_2(arg_list);
16200 case 3 : return process_3(arg_list);
16201 case 4 : return process_4(arg_list);
16202 case 5 : return process_5(arg_list);
16204 }
16205 }
static T process(const Sequence< Type, Allocator > &arg_list)
Definition exprtk.hpp:16059
static T process_5(const Sequence &arg_list)
Definition exprtk.hpp:16233
static T process_1(const Sequence &arg_list)
Definition exprtk.hpp:16208
static T process_2(const Sequence &arg_list)
Definition exprtk.hpp:16214
static T process_3(const Sequence &arg_list)
Definition exprtk.hpp:16220
static T process_4(const Sequence &arg_list)
Definition exprtk.hpp:16226

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

Here is the call graph for this function:

◆ process_1()

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

Definition at line 16208 of file exprtk.hpp.

16209 {
16210 return value(arg_list[0]);
16211 }
T value(details::expression_node< T > *n)
Definition exprtk.hpp:16028

References exprtk::details::value().

Referenced by 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>
T exprtk::details::vararg_avg_op< T >::process_2 ( const Sequence & arg_list)
inlinestatic

Definition at line 16214 of file exprtk.hpp.

16215 {
16216 return (value(arg_list[0]) + value(arg_list[1])) / T(2);
16217 }

References exprtk::details::value().

Referenced by 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>
T exprtk::details::vararg_avg_op< T >::process_3 ( const Sequence & arg_list)
inlinestatic

Definition at line 16220 of file exprtk.hpp.

16221 {
16222 return (value(arg_list[0]) + value(arg_list[1]) + value(arg_list[2])) / T(3);
16223 }

References exprtk::details::value().

Referenced by 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>
T exprtk::details::vararg_avg_op< T >::process_4 ( const Sequence & arg_list)
inlinestatic

Definition at line 16226 of file exprtk.hpp.

16227 {
16228 return (value(arg_list[0]) + value(arg_list[1]) +
16229 value(arg_list[2]) + value(arg_list[3])) / T(4);
16230 }

References exprtk::details::value().

Referenced by 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>
T exprtk::details::vararg_avg_op< T >::process_5 ( const Sequence & arg_list)
inlinestatic

Definition at line 16233 of file exprtk.hpp.

16234 {
16235 return (value(arg_list[0]) + value(arg_list[1]) +
16236 value(arg_list[2]) + value(arg_list[3]) +
16237 value(arg_list[4])) / T(5);
16238 }

References exprtk::details::value().

Referenced by 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: