Changeset 3408 for trunk/yat/omic/BamHeader.h
- Timestamp:
- Apr 16, 2015, 2:22:24 AM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/yat/omic/BamHeader.h
r3363 r3408 25 25 #include "config_bam.h" 26 26 27 #include "yat/utility/config_public.h" 28 27 29 #include YAT_SAM_HEADER 28 30 … … 32 34 namespace yat { 33 35 namespace omic { 36 37 #ifndef YAT_HAVE_HTSLIB 38 namespace detail { 39 bam_header_t * bam_hdr_dup(const bam_header_t* other); 40 } 41 #endif 34 42 35 43 /** … … 54 62 55 63 /** 64 \brief Destructor 65 */ 66 ~BamHeader(void); 67 68 /** 69 \brief Copy constructor 70 */ 71 BamHeader(const BamHeader&); 72 73 /** 56 74 Parse a region in the format: 'chr2:100,000-200,000 and return 57 75 values in variables \a tid, \a begin and \a end. \a reg is … … 70 88 71 89 /** 90 \brief Exchanges the content in \c *this and \a other 91 92 \since New in yat 0.13 93 */ 94 void swap(BamHeader& other); 95 96 /** 72 97 Name of chromosome with ID \a tid 73 98 */ … … 78 103 */ 79 104 uint32_t target_length(size_t tid) const; 105 106 /** 107 \return text in header 108 109 \since New in yat 0.13 110 */ 111 std::string text(void) const; 112 113 /** 114 \brief set text in header 115 116 This function parses \a txt and updates fields. 117 118 \since New in yat 0.13 119 */ 120 void text(const std::string& txt); 80 121 81 122 /** … … 94 135 */ 95 136 int32_t n_targets(void) const; 137 138 /** 139 \brief assignment operator 140 */ 141 BamHeader& operator=(const BamHeader& rhs); 142 96 143 private: 97 144 #ifndef YAT_HAVE_HTSLIB … … 104 151 105 152 // using compiler generated copy and assignment 106 //BamHeader(const BamHeader&);107 //BamHeader& operator=(const BamHeader& rhs);108 153 }; 154 155 /** 156 Exchanges the content in the headers. 157 158 \since New in yat 0.13 159 160 \relates BamHeader 161 */ 162 void swap(BamHeader& lhs, BamHeader& rhs); 109 163 110 164 }}}
Note: See TracChangeset
for help on using the changeset viewer.