CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Types | Static Public Member Functions
npstat::Private::AbsHelper< T, Unsigned > Struct Template Reference

#include <absDifference.h>

Public Types

typedef Private::AbsReturnType
< T >::type 
return_type
 

Static Public Member Functions

static return_type delta (const T &v1, const T &v2)
 
static return_type value (const T &v1)
 

Detailed Description

template<typename T, int Unsigned = 0>
struct npstat::Private::AbsHelper< T, Unsigned >

Definition at line 54 of file absDifference.h.

Member Typedef Documentation

template<typename T, int Unsigned = 0>
typedef Private::AbsReturnType<T>::type npstat::Private::AbsHelper< T, Unsigned >::return_type

Definition at line 56 of file absDifference.h.

Member Function Documentation

template<typename T, int Unsigned = 0>
static return_type npstat::Private::AbsHelper< T, Unsigned >::delta ( const T v1,
const T v2 
)
inlinestatic

Definition at line 58 of file absDifference.h.

References funct::abs().

59  {return std::abs(v1 - v2);}
Abs< T >::type abs(const T &t)
Definition: Abs.h:22
template<typename T, int Unsigned = 0>
static return_type npstat::Private::AbsHelper< T, Unsigned >::value ( const T v1)
inlinestatic

Definition at line 61 of file absDifference.h.

References funct::abs().

62  {return std::abs(v1);}
Abs< T >::type abs(const T &t)
Definition: Abs.h:22