Home  · Classes  · Annotated Classes  · Modules  · Members  · Namespaces  · Related Pages
Public Member Functions | Public Attributes

EqualInTolerance< CompareType > Struct Template Reference

Struct for binary predicate to consider equality with a certain tolerance. More...

#include <OpenMS/KERNEL/ComparatorUtils.h>

Inheritance diagram for EqualInTolerance< CompareType >:
binary_function

List of all members.

Public Member Functions

 EqualInTolerance (CompareType &c)
bool operator() (CompareType i, CompareType j)

Public Attributes

CompareType & tolerance

Detailed Description

template<typename CompareType>
struct OpenMS::EqualInTolerance< CompareType >

Struct for binary predicate to consider equality with a certain tolerance.

Parameters:
i first value
i second value
Returns:
bool if the two parameters are in tolerance close to each other

Constructor & Destructor Documentation

EqualInTolerance ( CompareType &  c  )  [inline, explicit]

Member Function Documentation

bool operator() ( CompareType  i,
CompareType  j 
) [inline]

Member Data Documentation


OpenMS / TOPP release 1.10.0 Documentation generated on Thu Mar 7 2013 09:42:54 using doxygen 1.7.1