Ignore:
Timestamp:
Mar 15, 2014, 10:10:37 AM (9 years ago)
Author:
Peter
Message:

closes #784. New class BamPairProxy? to finalize implementation of BamPairIterator?.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/yat/omic/BamPair.cc

    r3175 r3176  
    2323
    2424#include "BamPair.h"
     25
     26#include <cassert>
    2527
    2628namespace theplu {
     
    6062  }
    6163
     64  ///////////// BamPairProxy ////////////////////
     65
     66  BamPairProxy::BamPairProxy(void)
     67    : first_(NULL), second_(NULL) {}
     68
     69  BamPairProxy::BamPairProxy(const BamRead* first, const BamRead* second)
     70    : first_(first), second_(second) {}
     71
     72  const BamRead& BamPairProxy::first(void) const
     73  {
     74    assert(first_);
     75    return *first_;
     76  }
     77
     78
     79  const BamRead& BamPairProxy::second(void) const
     80  {
     81    assert(second_);
     82    return *second_;
     83  }
     84
     85
     86  BamPairProxy::operator BamPair() const
     87  {
     88    return BamPair(*first_, *second_);
     89  }
     90
    6291}}}
Note: See TracChangeset for help on using the changeset viewer.