Changeset 3583
- Timestamp:
- Jan 19, 2017, 5:11:50 AM (7 years ago)
- Location:
- trunk/yat/omic
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/yat/omic/BamRead.cc
r3398 r3583 33 33 #include <cstring> 34 34 #include <sstream> 35 #include <utility> 35 36 36 37 // bam1_seq_seti is not defined in 0.1.18 (or older), so … … 78 79 79 80 81 #ifdef YAT_HAVE_RVALUE 82 BamRead::BamRead(BamRead&& other) 83 : bam_(other.bam_) 84 { 85 other.bam_ = NULL; 86 } 87 #endif 88 89 80 90 BamRead::~BamRead(void) 81 91 { … … 90 100 return *this; 91 101 } 102 103 104 #ifdef YAT_HAVE_RVALUE 105 BamRead& BamRead::operator=(BamRead&& rhs) 106 { 107 this->swap(rhs); 108 return *this; 109 } 110 #endif 92 111 93 112 -
trunk/yat/omic/BamRead.h
r3550 r3583 67 67 BamRead(const BamRead& other); 68 68 69 #ifdef YAT_HAVE_RVALUE 70 /** 71 \brief move constructor 72 */ 73 BamRead(BamRead&& other); 74 #endif 75 69 76 /** 70 77 \brief Destructor … … 76 83 */ 77 84 const BamRead& operator=(const BamRead& rhs); 85 86 #ifdef YAT_HAVE_RVALUE 87 /** 88 \brief move assignment operator 89 */ 90 BamRead& operator=(BamRead&& rhs); 91 #endif 78 92 79 93 /**
Note: See TracChangeset
for help on using the changeset viewer.