![]() |
|
|
Generated: 8 Jan 2009 |
00001 // $Id: Adapters.cpp,v 1.1 2004/03/28 18:50:36 mato Exp $ 00002 // ============================================================================ 00003 // Include files 00004 // ============================================================================ 00005 // STD & STL 00006 // ============================================================================ 00007 #include <iostream> 00008 // ============================================================================ 00009 // AIDA 00010 // ============================================================================ 00011 #include "AIDA/IFunction.h" 00012 // ============================================================================ 00013 // local 00014 // ============================================================================ 00015 #include "GaudiMath/Adapters.h" 00016 // ============================================================================ 00017 00024 namespace GaudiMath 00025 { 00026 00027 AIDAFunction adapter 00028 ( const AIDA::IFunction& function ) 00029 { return AIDAFunction( function ) ; } 00030 00031 Function2D adapter 00032 ( Function2D::Function function ) 00033 { return Function2D ( function ) ; } 00034 00035 Function3D adapter 00036 ( Function3D::Function function ) 00037 { return Function3D ( function ) ; } 00038 00039 SimpleFunction adapter 00040 ( SimpleFunction::Function1 function ) 00041 { return SimpleFunction ( function ) ; } 00042 00043 SimpleFunction adapter 00044 ( const size_t dim , 00045 SimpleFunction::Function2 function ) 00046 { return SimpleFunction ( function , dim ) ; } 00047 00048 SimpleFunction adapter 00049 ( const size_t dim , 00050 SimpleFunction::Function3 function ) 00051 { return SimpleFunction ( function , dim ) ; } 00052 00053 GSLFunctionWithMode adapter 00054 ( GSLFunctionWithMode::Function function , 00055 const gsl_mode_t& mode ) 00056 { return GSLFunctionWithMode ( function , mode ) ; } 00057 00058 GSLFunctionWithError adapter 00059 ( GSLFunctionWithError::Function function ) 00060 { return GSLFunctionWithError ( function ) ; } 00061 00062 GSLFunctionWithModeAndError adapter 00063 ( GSLFunctionWithModeAndError::Function function , 00064 const gsl_mode_t& mode ) 00065 { return GSLFunctionWithModeAndError ( function , mode ) ; } 00066 00067 00068 } ; // end of namespace GaudiMath 00069 // ============================================================================ 00070 // The END 00071 // ============================================================================