/* * Copyright (c) <2002-2009> * * Permission is hereby granted, free of charge, to any person obtaining * a copy of this software and associated documentation files * (curlpp), to deal in the Software without restriction, * including without limitation the rights to use, copy, modify, merge, * publish, distribute, sublicense, and/or sell copies of the Software, * and to permit persons to whom the Software is furnished to do so, * subject to the following conditions: * * The above copyright notice and this permission notice shall be included * in all copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY * CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, * TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE * SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ #ifndef UTILSPP_FUNCTORIMPL_HPP #define UTILSPP_FUNCTORIMPL_HPP namespace utilspp { template struct FunctorImpl; template struct FunctorImpl { R operator()() = 0; virtual FunctorImpl * clone() const = 0; virtual ~FunctorImpl(){}; }; template struct FunctorImpl { virtual R operator()(P1) = 0; virtual FunctorImpl * clone() const = 0; virtual ~FunctorImpl(){}; }; template struct FunctorImpl { virtual R operator()(P1, P2) = 0; virtual FunctorImpl * clone() const = 0; virtual ~FunctorImpl(){}; }; template struct FunctorImpl { virtual R operator()(P1, P2, P3) = 0; virtual FunctorImpl * clone() const = 0; virtual ~FunctorImpl(){}; }; template struct FunctorImpl { virtual R operator()(P1, P2, P3, P4) = 0; virtual FunctorImpl * clone() const = 0; virtual ~FunctorImpl(){}; }; template struct FunctorImpl { virtual R operator()(P1, P2, P3, P4, P5) = 0; virtual FunctorImpl * clone() const = 0; virtual ~FunctorImpl(){}; }; template< typename R, typename P1, typename P2, typename P3, typename P4, typename P5, typename P6> struct FunctorImpl { virtual R operator()(P1, P2, P3, P4, P5, P6) = 0; virtual FunctorImpl * clone() const = 0; virtual ~FunctorImpl(){}; }; template< typename R, typename P1, typename P2, typename P3, typename P4, typename P5, typename P6, typename P7> struct FunctorImpl { virtual R operator()(P1, P2, P3, P4, P5, P6, P7) = 0; virtual FunctorImpl * clone() const = 0; virtual ~FunctorImpl(){}; }; template< typename R, typename P1, typename P2, typename P3, typename P4, typename P5, typename P6, typename P7, typename P8> struct FunctorImpl { virtual R operator()(P1, P2, P3, P4, P5, P6, P7, P8) = 0; virtual FunctorImpl * clone() const = 0; virtual ~FunctorImpl(){}; }; template< typename R, typename P1, typename P2, typename P3, typename P4, typename P5, typename P6, typename P7, typename P8, typename P9> struct FunctorImpl { virtual R operator()(P1, P2, P3, P4, P5, P6, P7, P8, P9) = 0; virtual FunctorImpl * clone() const = 0; virtual ~FunctorImpl(){}; }; template< typename R, typename P1, typename P2, typename P3, typename P4, typename P5, typename P6, typename P7, typename P8, typename P9, typename P10> struct FunctorImpl { virtual R operator()(P1, P2, P3, P4, P5, P6, P7, P8, P9, P10) = 0; virtual FunctorImpl * clone() const = 0; virtual ~FunctorImpl(){}; }; template struct FunctorImpl { virtual R operator()(P1, P2, P3, P4, P5, P6, P7, P8, P9, P10, P11) = 0; virtual FunctorImpl * clone() const = 0; virtual ~FunctorImpl(){}; }; template struct FunctorImpl { virtual R operator()(P1, P2, P3, P4, P5, P6, P7, P8, P9, P10, P11, P12) = 0; virtual FunctorImpl * clone() const = 0; virtual ~FunctorImpl(){}; }; template struct FunctorImpl { virtual R operator()(P1, P2, P3, P4, P5, P6, P7, P8, P9, P10, P11, P12, P13) = 0; virtual FunctorImpl * clone() const = 0; virtual ~FunctorImpl(){}; }; template struct FunctorImpl { virtual R operator()(P1, P2, P3, P4, P5, P6, P7, P8, P9, P10, P11, P12, P13, P14) = 0; virtual FunctorImpl * clone() const = 0; virtual ~FunctorImpl(){}; }; template struct FunctorImpl { virtual R operator()(P1, P2, P3, P4, P5, P6, P7, P8, P9, P10, P11, P12, P13, P14, P15) = 0; virtual FunctorImpl * clone() const = 0; virtual ~FunctorImpl(){}; }; } #endif