// -*- c++ -*- /*****************************************************************************/ // Copyright (c) Illumina 2008 // Author: Richard Shaw // // This software is covered by the "Illumina Genome Analyzer Software // License Agreement" and the "Illumina Source Code License Agreement", // and certain third party copyright/licenses, and any user of this // source file is bound by the terms therein (see accompanying files // Illumina_Genome_Analyzer_Software_License_Agreement.pdf and // Illumina_Source_Code_License_Agreement.pdf and third party // copyright/license notices). /*****************************************************************************/ #ifndef ADD_PAIRED_ELE_H #define ADD_PAIRED_ELE_H /*****************************************************************************/ template class Add_Paired_Ele { public: Add_Paired_Ele(U iter) : my_iter(iter) { } ~Add_Paired_Ele() { } const T operator()(const T val) { const T ret_val(*my_iter + val); ++my_iter; return ret_val; } private: U my_iter; }; /*****************************************************************************/ #endif // ! ADD_PAIRED_ELE_H /*****************************************************************************/