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

Definition at line 15963 of file exprtk.hpp.

Member Typedef Documentation

◆ Type

Definition at line 15965 of file exprtk.hpp.

Member Function Documentation

◆ process()

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

Definition at line 15970 of file exprtk.hpp.

15971 {
15972 switch (arg_list.size())
15973 {
15974 case 0 : return T(0);
15975 case 1 : return process_1(arg_list);
15976 case 2 : return process_2(arg_list);
15977 case 3 : return process_3(arg_list);
15978 case 4 : return process_4(arg_list);
15979 case 5 : return process_5(arg_list);
15980 default :
15981 {
15982 T result = T(value(arg_list[0]));
15983
15984 for (std::size_t i = 1; i < arg_list.size(); ++i)
15985 {
15986 const T v = value(arg_list[i]);
15987
15988 if (v < result)
15989 result = v;
15990 }
15991
15992 return result;
15993 }
15994 }
15995 }
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
T value(details::expression_node< T > *n)
Definition exprtk.hpp:15749
static T process_4(const Sequence &arg_list)
Definition exprtk.hpp:16016
static T process_3(const Sequence &arg_list)
Definition exprtk.hpp:16010
static T process_1(const Sequence &arg_list)
Definition exprtk.hpp:15998
static T process_5(const Sequence &arg_list)
Definition exprtk.hpp:16024
static T process_2(const Sequence &arg_list)
Definition exprtk.hpp:16004

References exprtk::details::match_impl(), exprtk::details::vararg_min_op< T >::process_1(), exprtk::details::vararg_min_op< T >::process_2(), exprtk::details::vararg_min_op< T >::process_3(), exprtk::details::vararg_min_op< T >::process_4(), exprtk::details::vararg_min_op< T >::process_5(), and exprtk::details::value().

Here is the call graph for this function:

◆ process_1()

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

Definition at line 15998 of file exprtk.hpp.

15999 {
16000 return value(arg_list[0]);
16001 }

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

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

Definition at line 16004 of file exprtk.hpp.

16005 {
16006 return std::min<T>(value(arg_list[0]),value(arg_list[1]));
16007 }

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

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

Definition at line 16010 of file exprtk.hpp.

16011 {
16012 return std::min<T>(std::min<T>(value(arg_list[0]),value(arg_list[1])),value(arg_list[2]));
16013 }

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

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

Definition at line 16016 of file exprtk.hpp.

16017 {
16018 return std::min<T>(
16019 std::min<T>(value(arg_list[0]), value(arg_list[1])),
16020 std::min<T>(value(arg_list[2]), value(arg_list[3])));
16021 }

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

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

Definition at line 16024 of file exprtk.hpp.

16025 {
16026 return std::min<T>(
16027 std::min<T>(std::min<T>(value(arg_list[0]), value(arg_list[1])),
16028 std::min<T>(value(arg_list[2]), value(arg_list[3]))),
16029 value(arg_list[4]));
16030 }

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

Referenced by exprtk::details::vararg_min_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: