Changeset 3835


Ignore:
Timestamp:
Aug 8, 2019, 3:36:46 AM (4 years ago)
Author:
Peter
Message:

fixes #929

Location:
branches/0.16-stable
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • branches/0.16-stable/NEWS

    r3833 r3835  
    66
    77version 0.16.2 (released NOT YET)
     8  - utility::Aligner::Cigar::begin(void) and ::end(void) are now
     9    implemented (see bug #929)
    810
    911  A complete list of closed tickets can be found here [[br]]
  • branches/0.16-stable/test/cigar.cc

    r3213 r3835  
    7777    suite.err() << "error: incorrect string\n";
    7878  }
     79  for (utility::Aligner::Cigar::const_iterator c=cig.begin();c!=cig.end();++c){
     80    std::string str(BAM_CIGAR_STR);
     81    assert(*c < str.size());
     82    suite.out() << str[*c];
     83  }
     84  suite.out() << "\n";
    7985
    8086  if (!suite.add(cig.length()==17))
  • branches/0.16-stable/yat/utility/Aligner.cc

    r3462 r3835  
    22
    33/*
    4   Copyright (C) 2012, 2014, 2016 Peter Johansson
     4  Copyright (C) 2012, 2014, 2016, 2019 Peter Johansson
    55
    66  This file is part of the yat library, http://dev.thep.lu.se/yat
     
    158158  // ================ Cigar =======================
    159159
     160  Aligner::Cigar::const_iterator Aligner::Cigar::begin(void) const
     161  {
     162    return const_iterator(cigar_.begin());
     163  }
     164
     165
    160166  void Aligner::Cigar::clear(void)
    161167  {
    162168    cigar_.clear();
     169  }
     170
     171
     172  Aligner::Cigar::const_iterator Aligner::Cigar::end(void) const
     173  {
     174    return const_iterator(cigar_.end());
    163175  }
    164176
  • branches/0.16-stable/yat/utility/Aligner.h

    r3462 r3835  
    77  Copyright (C) 2012 Peter Johansson
    88  Copyright (C) 2013 Jari Häkkinen, Peter Johansson
    9   Copyright (C) 2014, 2016 Peter Johansson
     9  Copyright (C) 2014, 2016, 2019 Peter Johansson
    1010
    1111  This file is part of the yat library, http://dev.thep.lu.se/yat
     
    190190
    191191         \since New in yat 0.13
     192
     193         \note was not implemented prior 0.16.2
    192194       */
    193195      const_iterator begin(void) const;
     
    202204
    203205         \since New in yat 0.13
     206
     207         \note was not implemented prior 0.16.2
    204208       */
    205209      const_iterator end(void) const;
Note: See TracChangeset for help on using the changeset viewer.