Chemical Data Processing Library C++ API - Version 1.4.0
Public Types | Static Public Member Functions | List of all members
CDPL::Math::VectorEquality< V1, V2 > Struct Template Reference

Vector equality functor: apply(e1, e2) tests element-wise equality of two vector expressions. More...

#include <Functional.hpp>

+ Inheritance diagram for CDPL::Math::VectorEquality< V1, V2 >:

Public Types

typedef VectorBooleanBinaryFunctor< V1, V2 >::SizeType SizeType
 
typedef VectorBooleanBinaryFunctor< V1, V2 >::ValueType ValueType
 
typedef VectorBooleanBinaryFunctor< V1, V2 >::ResultType ResultType
 
- Public Types inherited from CDPL::Math::VectorBooleanBinaryFunctor< V1, V2 >
typedef bool ResultType
 The boolean result type. More...
 
typedef CommonType< typename V1::SizeType, typename V2::SizeType >::Type SizeType
 The unsigned size type (common type of the two vector size types). More...
 
typedef CommonType< typename V1::ValueType, typename V2::ValueType >::Type ValueType
 The element value type (common type of the two vector element types). More...
 

Static Public Member Functions

static ResultType apply (const VectorExpression< V1 > &e1, const VectorExpression< V2 > &e2)
 Tells whether the vector expressions e1 and e2 are element-wise equal. More...
 

Detailed Description

template<typename V1, typename V2>
struct CDPL::Math::VectorEquality< V1, V2 >

Vector equality functor: apply(e1, e2) tests element-wise equality of two vector expressions.

Template Parameters
V1The first vector expression type.
V2The second vector expression type.

Member Typedef Documentation

◆ SizeType

template<typename V1 , typename V2 >
typedef VectorBooleanBinaryFunctor<V1, V2>::SizeType CDPL::Math::VectorEquality< V1, V2 >::SizeType

◆ ValueType

template<typename V1 , typename V2 >
typedef VectorBooleanBinaryFunctor<V1, V2>::ValueType CDPL::Math::VectorEquality< V1, V2 >::ValueType

◆ ResultType

template<typename V1 , typename V2 >
typedef VectorBooleanBinaryFunctor<V1, V2>::ResultType CDPL::Math::VectorEquality< V1, V2 >::ResultType

Member Function Documentation

◆ apply()

template<typename V1 , typename V2 >
static ResultType CDPL::Math::VectorEquality< V1, V2 >::apply ( const VectorExpression< V1 > &  e1,
const VectorExpression< V2 > &  e2 
)
inlinestatic

Tells whether the vector expressions e1 and e2 are element-wise equal.

Parameters
e1The first vector expression.
e2The second vector expression.
Returns
true if both vectors have equal sizes and equal elements, and false otherwise.

The documentation for this struct was generated from the following file: