Документ взят из кэша поисковой машины. Адрес
оригинального документа
: http://www.atnf.csiro.au/computing/software/casacore/casacore-1.2.0/doc/html/structcasa_1_1Near.html
Дата изменения: Unknown Дата индексирования: Mon Feb 14 20:11:00 2011 Кодировка: Поисковые слова: п п п п п п п п п п п п п п п п п п п п п п п п п п |
Functor to test if two values are relatively near each other. More...
#include <Functors.h>
Public Member Functions | |
Near (double tolerance=1e-5) | |
bool | operator() (L left, R right) const |
Private Attributes | |
double | itsTolerance |
Functor to test if two values are relatively near each other.
It can be used in something like:
std::transform (left.begin(), left.cend(), right.begin(), result.cbegin(), Near<T>(tolerance));
Definition at line 247 of file Functors.h.
casa::Near< L, R >::Near | ( | double | tolerance = 1e-5 |
) | [inline, explicit] |
Definition at line 249 of file Functors.h.
bool casa::Near< L, R >::operator() | ( | L | left, | |
R | right | |||
) | const [inline] |
Definition at line 252 of file Functors.h.
References casa::Near< L, R >::itsTolerance, and casa::near().
double casa::Near< L, R >::itsTolerance [private] |
Definition at line 255 of file Functors.h.
Referenced by casa::Near< L, R >::operator()().