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

#include <exprtk.hpp>

Inheritance diagram for exprtk::details::vararg_max_op< T >:
[legend]
Collaboration diagram for exprtk::details::vararg_max_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_max_op< T >

Definition at line 16313 of file exprtk.hpp.

Member Typedef Documentation

◆ Type

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

Definition at line 16315 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_max_op< T >::process ( const Sequence< Type, Allocator > & arg_list)
inlinestatic

Definition at line 16320 of file exprtk.hpp.

16321 {
16322 switch (arg_list.size())
16323 {
16324 case 0 : return T(0);
16325 case 1 : return process_1(arg_list);
16326 case 2 : return process_2(arg_list);
16327 case 3 : return process_3(arg_list);
16328 case 4 : return process_4(arg_list);
16329 case 5 : return process_5(arg_list);
16330 default :
16331 {
16332 T result = T(value(arg_list[0]));
16333
16334 for (std::size_t i = 1; i < arg_list.size(); ++i)
16335 {
16336 const T v = value(arg_list[i]);
16337
16338 if (v > result)
16339 result = v;
16340 }
16341
16342 return result;
16343 }
16344 }
16345 }
T value(details::expression_node< T > *n)
Definition exprtk.hpp:16028
static T process_1(const Sequence &arg_list)
Definition exprtk.hpp:16348
static T process_4(const Sequence &arg_list)
Definition exprtk.hpp:16366
static T process_3(const Sequence &arg_list)
Definition exprtk.hpp:16360
static T process_5(const Sequence &arg_list)
Definition exprtk.hpp:16374
static T process_2(const Sequence &arg_list)
Definition exprtk.hpp:16354

References exprtk::details::nodetype_T0oT1< T, T0, T1 >::result, process_1(), process_2(), process_3(), process_4(), process_5(), and exprtk::details::value().

Here is the call graph for this function:

◆ process_1()

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

Definition at line 16348 of file exprtk.hpp.

16349 {
16350 return value(arg_list[0]);
16351 }

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_max_op< T >::process_2 ( const Sequence & arg_list)
inlinestatic

Definition at line 16354 of file exprtk.hpp.

16355 {
16356 return std::max<T>(value(arg_list[0]),value(arg_list[1]));
16357 }

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_max_op< T >::process_3 ( const Sequence & arg_list)
inlinestatic

Definition at line 16360 of file exprtk.hpp.

16361 {
16363 }

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_max_op< T >::process_4 ( const Sequence & arg_list)
inlinestatic

Definition at line 16366 of file exprtk.hpp.

16367 {
16368 return std::max<T>(
16371 }

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_max_op< T >::process_5 ( const Sequence & arg_list)
inlinestatic

Definition at line 16374 of file exprtk.hpp.

16375 {
16376 return std::max<T>(
16379 value(arg_list[4]));
16380 }

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: