Changeset 3391


Ignore:
Timestamp:
Mar 16, 2015, 8:51:09 AM (8 years ago)
Author:
Peter
Message:

document requirements in SmithWaterman?. refs #803

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/yat/utility/SmithWaterman.h

    r3342 r3391  
    2525#include "Aligner.h"
    2626#include "Matrix.h"
     27
     28#include <boost/concept_check.hpp>
    2729
    2830#include <cstddef> // size_t
     
    9799       reference_end-reference_begin where the element ij is 1.0 if
    98100       reference_begin[i] == query_begin[j] and -mismatch otherwise.
     101
     102       Type Requirements:
     103       - \c RandomAccessIterator1 is a \readable_iterator
     104       - \c RandomAccessIterator1 is a \random_access_traversal_iterator
     105       - \c RandomAccessIterator2 is a \readable_iterator
     106       - \c RandomAccessIterator2 is a \random_access_traversal_iterator
    99107     */
    100108    template<typename RandomAccessIterator1, typename RandomAccessIterator2>
     
    121129                                   double mismatch)
    122130  {
     131    using boost_concepts::ReadableIterator;
     132    using boost_concepts::RandomAccessTraversal;
     133    BOOST_CONCEPT_ASSERT((ReadableIterator<RandomAccessIterator1>));
     134    BOOST_CONCEPT_ASSERT((RandomAccessTraversal<RandomAccessIterator1>));
     135    BOOST_CONCEPT_ASSERT((ReadableIterator<RandomAccessIterator2>));
     136    BOOST_CONCEPT_ASSERT((RandomAccessTraversal<RandomAccessIterator2>));
    123137    Matrix dot(reference_end-reference_begin, query_end-query_begin, -mismatch);
    124138    for (size_t i=0; i<dot.rows(); ++i)
Note: See TracChangeset for help on using the changeset viewer.