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

#include <exprtk.hpp>

Inheritance diagram for exprtk::details::vararg_mand_op< T >:
[legend]
Collaboration diagram for exprtk::details::vararg_mand_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_mand_op< T >

Definition at line 16384 of file exprtk.hpp.

Member Typedef Documentation

◆ Type

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

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

Definition at line 16391 of file exprtk.hpp.

16392 {
16393 switch (arg_list.size())
16394 {
16395 case 1 : return process_1(arg_list);
16396 case 2 : return process_2(arg_list);
16397 case 3 : return process_3(arg_list);
16398 case 4 : return process_4(arg_list);
16399 case 5 : return process_5(arg_list);
16400 default :
16401 {
16402 for (std::size_t i = 0; i < arg_list.size(); ++i)
16403 {
16404 if (std::equal_to<T>()(T(0), value(arg_list[i])))
16405 return T(0);
16406 }
16407
16408 return T(1);
16409 }
16410 }
16411 }
T value(details::expression_node< T > *n)
Definition exprtk.hpp:16028
static T process_5(const Sequence &arg_list)
Definition exprtk.hpp:16451
static T process_2(const Sequence &arg_list)
Definition exprtk.hpp:16421
static T process_4(const Sequence &arg_list)
Definition exprtk.hpp:16440
static T process_3(const Sequence &arg_list)
Definition exprtk.hpp:16430
static T process_1(const Sequence &arg_list)
Definition exprtk.hpp:16414

References 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_mand_op< T >::process_1 ( const Sequence & arg_list)
inlinestatic

Definition at line 16414 of file exprtk.hpp.

16415 {
16416 return std::not_equal_to<T>()
16417 (T(0), value(arg_list[0])) ? T(1) : T(0);
16418 }

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

Definition at line 16421 of file exprtk.hpp.

16422 {
16423 return (
16424 std::not_equal_to<T>()(T(0), value(arg_list[0])) &&
16426 ) ? T(1) : T(0);
16427 }

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

Definition at line 16430 of file exprtk.hpp.

16431 {
16432 return (
16433 std::not_equal_to<T>()(T(0), value(arg_list[0])) &&
16434 std::not_equal_to<T>()(T(0), value(arg_list[1])) &&
16436 ) ? T(1) : T(0);
16437 }

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

Definition at line 16440 of file exprtk.hpp.

16441 {
16442 return (
16443 std::not_equal_to<T>()(T(0), value(arg_list[0])) &&
16444 std::not_equal_to<T>()(T(0), value(arg_list[1])) &&
16445 std::not_equal_to<T>()(T(0), value(arg_list[2])) &&
16447 ) ? T(1) : T(0);
16448 }

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

Definition at line 16451 of file exprtk.hpp.

16452 {
16453 return (
16454 std::not_equal_to<T>()(T(0), value(arg_list[0])) &&
16455 std::not_equal_to<T>()(T(0), value(arg_list[1])) &&
16456 std::not_equal_to<T>()(T(0), value(arg_list[2])) &&
16457 std::not_equal_to<T>()(T(0), value(arg_list[3])) &&
16459 ) ? T(1) : T(0);
16460 }

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: