1 // ========================================================================== 2 // SeqAn - The Library for Sequence Analysis 3 // ========================================================================== 4 // Copyright (c) 2006-2015, Knut Reinert, FU Berlin 5 // All rights reserved. 6 // 7 // Redistribution and use in source and binary forms, with or without 8 // modification, are permitted provided that the following conditions are met: 9 // 10 // * Redistributions of source code must retain the above copyright 11 // notice, this list of conditions and the following disclaimer. 12 // * Redistributions in binary form must reproduce the above copyright 13 // notice, this list of conditions and the following disclaimer in the 14 // documentation and/or other materials provided with the distribution. 15 // * Neither the name of Knut Reinert or the FU Berlin nor the names of 16 // its contributors may be used to endorse or promote products derived 17 // from this software without specific prior written permission. 18 // 19 // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" 20 // AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 21 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 22 // ARE DISCLAIMED. IN NO EVENT SHALL KNUT REINERT OR THE FU BERLIN BE LIABLE 23 // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 24 // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR 25 // SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER 26 // CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 27 // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 28 // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH 29 // DAMAGE. 30 // 31 // ========================================================================== 32 // Author: Andreas Gogol-Doering <andreas.doering@mdc-berlin.de> 33 // ========================================================================== 34 // Align-specific metafunctions. 35 // ========================================================================== 36 37 #ifndef SEQAN_INCLUDE_SEQAN_ALIGN_ALIGN_METAFUNCTIONS_H_ 38 #define SEQAN_INCLUDE_SEQAN_ALIGN_ALIGN_METAFUNCTIONS_H_ 39 40 namespace seqan { 41 42 // ============================================================================ 43 // Forwards 44 // ============================================================================ 45 46 // ============================================================================ 47 // Tags, Classes, Enums 48 // ============================================================================ 49 50 // ============================================================================ 51 // Metafunctions 52 // ============================================================================ 53 54 // ---------------------------------------------------------------------------- 55 // Metafunction Cols 56 // ---------------------------------------------------------------------------- 57 58 template <typename T> 59 struct Cols; 60 61 // ---------------------------------------------------------------------------- 62 // Metafunction Col 63 // ---------------------------------------------------------------------------- 64 65 /*! 66 * @mfn Align#Col 67 * @headerfile <seqan/align.h> 68 * @brief The column type for @link Align @endlink objects. 69 * 70 * @signature Col<TAlign>::Type 71 * 72 * @tparam TAlign The @link Align @endlink object to query for its column type. 73 * 74 * @return Type The resulting type. 75 */ 76 77 template <typename T> 78 struct Col : Value<typename Cols<T>::Type> 79 {}; 80 81 // ---------------------------------------------------------------------------- 82 // Metafunction Rows 83 // ---------------------------------------------------------------------------- 84 85 template <typename T> 86 struct Rows; 87 88 // ---------------------------------------------------------------------------- 89 // Metafunction Row 90 // ---------------------------------------------------------------------------- 91 92 template <typename T> 93 struct Row : Value<typename Rows<T>::Type> 94 {}; 95 96 template <typename T> 97 struct Row<T const> 98 { 99 typedef typename Row<T>::Type const Type; 100 }; 101 102 // ---------------------------------------------------------------------------- 103 // Metafunction StringSetType 104 // ---------------------------------------------------------------------------- 105 106 template <typename T> 107 struct StringSetType; 108 109 // ============================================================================ 110 // Functions 111 // ============================================================================ 112 113 } // namespace seqan 114 115 #endif // #ifndef SEQAN_INCLUDE_SEQAN_ALIGN_ALIGN_METAFUNCTIONS_H_ 116