Changeset 3175
- Timestamp:
- Mar 15, 2014, 9:15:51 AM (9 years ago)
- Location:
- trunk
- Files:
-
- 2 added
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/test/bam_pair_analyse.cc
r3114 r3175 73 73 Counter counter; 74 74 bam_pair_analyse(iter, end, counter); 75 suite.out() << counter.n_ << "\n";76 suite.add(counter.n_==395);75 if (!suite.add(counter.n_==395)) 76 suite.err() << "n: " << counter.n_ << "; expected 395\n"; 77 77 is.close(); 78 78 } -
trunk/yat/omic/BamPairIterator.h
r3174 r3175 25 25 #include <iostream> 26 26 27 #include "BamPair.h" 27 28 #include "BamRead.h" 28 29 … … 59 60 class BamPairIterator 60 61 : public boost::iterator_facade< 61 BamPairIterator<Base>, const std::pair<BamRead, BamRead>, 62 std::input_iterator_tag 62 BamPairIterator<Base>, const BamPair, std::input_iterator_tag 63 63 > 64 64 { … … 81 81 Base iter_; 82 82 Base end_; 83 std::pair<BamRead, BamRead>x_;83 BamPair x_; 84 84 boost::shared_ptr<std::map<std::string, BamRead> > siam_reads_; 85 85 typedef std::pair<int32_t, int32_t> Position; … … 87 87 friend class boost::iterator_core_access; 88 88 89 const std::pair<BamRead, BamRead>& dereference(void) const;89 const BamPair& dereference(void) const; 90 90 bool equal(const BamPairIterator& other) const; 91 91 void increment(void); … … 143 143 144 144 template<typename Base> 145 const std::pair<BamRead, BamRead>&145 const BamPair& 146 146 BamPairIterator<Base>::dereference(void) const 147 147 { … … 189 189 for (; lower!=reads_->end() && lower->first == position; ++lower) 190 190 if (same_query_name(lower->second, *iter_)) { 191 x_.first = lower->second;192 x_.second = *iter_;191 x_.first() = lower->second; 192 x_.second() = *iter_; 193 193 return; 194 194 } … … 199 199 mate = siam_reads_->lower_bound(iter_->name()); 200 200 if (mate!=siam_reads_->end() && same_query_name(mate->second, *iter_)) { 201 x_.first = mate->second;202 x_.second = *iter_;201 x_.first() = mate->second; 202 x_.second() = *iter_; 203 203 return; 204 204 } -
trunk/yat/omic/Makefile.am
r3173 r3175 21 21 yat_libyat_la_SOURCES += yat/omic/BamFile.cc 22 22 yat_libyat_la_SOURCES += yat/omic/BamHeader.cc 23 yat_libyat_la_SOURCES += yat/omic/BamPair.cc 23 24 yat_libyat_la_SOURCES += yat/omic/BamRead.cc 24 25 yat_libyat_la_SOURCES += yat/omic/BamReadFilter.cc … … 36 37 nobase_include_HEADERS += $(srcdir)/yat/omic/BamFile.h 37 38 nobase_include_HEADERS += $(srcdir)/yat/omic/BamHeader.h 39 nobase_include_HEADERS += $(srcdir)/yat/omic/BamPair.h 38 40 nobase_include_HEADERS += $(srcdir)/yat/omic/BamPairIterator.h 39 41 nobase_include_HEADERS += $(srcdir)/yat/omic/BamRead.h -
trunk/yat/omic/algorithm.h
r3173 r3175 63 63 BamPairIterator<Iterator> end(last, last); 64 64 for (; iter!=end; ++iter) 65 visitor(iter->first , iter->second);65 visitor(iter->first(), iter->second()); 66 66 } 67 67
Note: See TracChangeset
for help on using the changeset viewer.