core/vnl/vnl_unary_function.txx
Go to the documentation of this file.
00001 // This is core/vnl/vnl_unary_function.txx
00002 #ifndef vnl_unary_function_txx_
00003 #define vnl_unary_function_txx_
00004 //:
00005 // \file
00006 // \brief Abstract 1D map
00007 //  vnl_unary_function is an abstract map between two types (read spaces).
00008 // \author Andrew W. Fitzgibbon, Oxford RRG
00009 // \date   28 Nov 1998
00010 //
00011 // \verbatim
00012 //  Modifications
00013 //   981128 AWF Initial version.
00014 //   LSB Manchester 19/Mar/2001 Documentation tidied
00015 //   Feb.2002 - Peter Vanroose - brief doxygen comment placed on single line
00016 //   Oct.2003 - Ian Scott - Move the use of vcl_limits out of the .h file, to
00017 //                          solve stupid MSVC6.0 problems.
00018 // \endverbatim
00019 //
00020 //-----------------------------------------------------------------------------
00021 
00022 #include "vnl_unary_function.h"
00023 #include <vcl_limits.h>
00024 
00025 //: Return bounding cube of range (outputs)
00026 template <class RETURN, class ARGUMENT>
00027 RETURN vnl_unary_function<RETURN, ARGUMENT>::get_range_min() const
00028 {
00029   return vcl_numeric_limits<RETURN>::min();
00030 }
00031 
00032 //: Return bounding cube of range (outputs)
00033 template <class RETURN, class ARGUMENT>
00034 RETURN vnl_unary_function<RETURN, ARGUMENT>::get_range_max() const
00035 {
00036   return vcl_numeric_limits<RETURN>::max();
00037 }
00038 
00039 #define VNL_UNARY_FUNCTION_INSTANTIATE(S,T) \
00040 template class vnl_unary_function<S, T >
00041 
00042 #endif // vnl_unary_function_txx_