Ignore:
Timestamp:
Sep 14, 2007, 8:59:46 PM (14 years ago)
Author:
Peter
Message:

Adding Smith-Waterman local alignment and modified ssearch to use this instead. Also added some convenient max functions in stl_utility.

File:
1 edited

Legend:

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

    r865 r869  
    3535///
    3636
     37#include <algorithm>
    3738#include <ostream>
    3839#include <string>
     
    5556namespace yat {
    5657namespace utility {
     58
     59  /**
     60     \return max of values
     61   */
     62  template <typename T>
     63  T max(const T& a, const T& b, const T& c)
     64  {
     65    return std::max(std::max(a,b),c);
     66  }
     67
     68
     69  /**
     70     \return max of values
     71   */
     72  template <typename T>
     73  T max(const T& a, const T& b, const T& c, const T& d)
     74  {
     75    return std::max(std::max(a,b), std::max(c,d));
     76  }
     77
     78
     79  /**
     80     \return max of values
     81   */
     82  template <typename T>
     83  T max(const T& a, const T& b, const T& c, const T& d, const T& e)
     84  {
     85    return std::max(max(a,b,c,d), e);
     86  }
     87
     88
     89  /**
     90     \return max of values
     91   */
     92  template <typename T>
     93  T max(const T& a, const T& b, const T& c, const T& d, const T& e, const T& f)
     94  {
     95    return std::max(max(a,b,c,d), std::max(e,f));
     96  }
    5797
    5898
Note: See TracChangeset for help on using the changeset viewer.