C++ Mathematical Expression Toolkit (ExprTk) release
Loading...
Searching...
No Matches
Public Types | Static Public Member Functions | List of all members
exprtk::details::vararg_mand_op< T > Struct Template Reference
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< 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_mand_op< T >

Definition at line 16304 of file exprtk.hpp.

Member Typedef Documentation

◆ Type

Definition at line 16306 of file exprtk.hpp.

Member Function Documentation

◆ process()

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

Definition at line 16311 of file exprtk.hpp.

16312 {
16313 switch (arg_list.size())
16314 {
16315 case 1 : return process_1(arg_list);
16316 case 2 : return process_2(arg_list);
16317 case 3 : return process_3(arg_list);
16318 case 4 : return process_4(arg_list);
16319 case 5 : return process_5(arg_list);
16320 default :
16321 {
16322 for (std::size_t i = 0; i < arg_list.size(); ++i)
16323 {
16324 if (std::equal_to<T>()(T(0), value(arg_list[i])))
16325 return T(0);
16326 }
16327
16328 return T(1);
16329 }
16330 }
16331 }
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:605
T value(details::expression_node< T > *n)
Definition exprtk.hpp:15948
static T process_5(const Sequence &arg_list)
Definition exprtk.hpp:16371
static T process_2(const Sequence &arg_list)
Definition exprtk.hpp:16341
static T process_4(const Sequence &arg_list)
Definition exprtk.hpp:16360
static T process_3(const Sequence &arg_list)
Definition exprtk.hpp:16350
static T process_1(const Sequence &arg_list)
Definition exprtk.hpp:16334

References exprtk::details::match_impl(), exprtk::details::vararg_mand_op< T >::process_1(), exprtk::details::vararg_mand_op< T >::process_2(), exprtk::details::vararg_mand_op< T >::process_3(), exprtk::details::vararg_mand_op< T >::process_4(), exprtk::details::vararg_mand_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_mand_op< T >::process_1 ( const Sequence arg_list)
inlinestatic

Definition at line 16334 of file exprtk.hpp.

16335 {
16336 return std::not_equal_to<T>()
16337 (T(0), value(arg_list[0])) ? T(1) : T(0);
16338 }

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

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

Definition at line 16341 of file exprtk.hpp.

16342 {
16343 return (
16344 std::not_equal_to<T>()(T(0), value(arg_list[0])) &&
16345 std::not_equal_to<T>()(T(0), value(arg_list[1]))
16346 ) ? T(1) : T(0);
16347 }

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

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

Definition at line 16350 of file exprtk.hpp.

16351 {
16352 return (
16353 std::not_equal_to<T>()(T(0), value(arg_list[0])) &&
16354 std::not_equal_to<T>()(T(0), value(arg_list[1])) &&
16355 std::not_equal_to<T>()(T(0), value(arg_list[2]))
16356 ) ? T(1) : T(0);
16357 }

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

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

Definition at line 16360 of file exprtk.hpp.

16361 {
16362 return (
16363 std::not_equal_to<T>()(T(0), value(arg_list[0])) &&
16364 std::not_equal_to<T>()(T(0), value(arg_list[1])) &&
16365 std::not_equal_to<T>()(T(0), value(arg_list[2])) &&
16366 std::not_equal_to<T>()(T(0), value(arg_list[3]))
16367 ) ? T(1) : T(0);
16368 }

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

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

Definition at line 16371 of file exprtk.hpp.

16372 {
16373 return (
16374 std::not_equal_to<T>()(T(0), value(arg_list[0])) &&
16375 std::not_equal_to<T>()(T(0), value(arg_list[1])) &&
16376 std::not_equal_to<T>()(T(0), value(arg_list[2])) &&
16377 std::not_equal_to<T>()(T(0), value(arg_list[3])) &&
16378 std::not_equal_to<T>()(T(0), value(arg_list[4]))
16379 ) ? T(1) : T(0);
16380 }

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

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