| 1 |
\hypertarget{UnitigMap_8hpp_source}{}\doxysection{Unitig\+Map.\+hpp} |
| 2 |
\label{UnitigMap_8hpp_source}\index{src/UnitigMap.hpp@{src/UnitigMap.hpp}} |
| 3 |
\mbox{\hyperlink{UnitigMap_8hpp}{Go to the documentation of this file.}} |
| 4 |
\begin{DoxyCode}{0} |
| 5 |
\DoxyCodeLine{1 \textcolor{preprocessor}{\#ifndef BIFROST\_UNITIGMAP\_HPP}} |
| 6 |
\DoxyCodeLine{2 \textcolor{preprocessor}{\#define BIFROST\_UNITIGMAP\_HPP}} |
| 7 |
\DoxyCodeLine{3 } |
| 8 |
\DoxyCodeLine{4 \textcolor{preprocessor}{\#include <string>}} |
| 9 |
\DoxyCodeLine{5 \textcolor{preprocessor}{\#include "{}Common.hpp"{}}} |
| 10 |
\DoxyCodeLine{6 \textcolor{preprocessor}{\#include "{}\mbox{\hyperlink{Kmer_8hpp}{Kmer.hpp}}"{}}} |
| 11 |
\DoxyCodeLine{7 } |
| 12 |
\DoxyCodeLine{13 \textcolor{keyword}{template}<\textcolor{keyword}{typename} U> \textcolor{keyword}{class }\mbox{\hyperlink{classUnitig}{Unitig}};} |
| 13 |
\DoxyCodeLine{14 \textcolor{keyword}{template}<\textcolor{keyword}{typename} U, \textcolor{keyword}{typename} G> \textcolor{keyword}{class }\mbox{\hyperlink{classCompactedDBG}{CompactedDBG}};} |
| 14 |
\DoxyCodeLine{15 \textcolor{keyword}{template}<\textcolor{keyword}{typename} U, \textcolor{keyword}{typename} G, \textcolor{keywordtype}{bool} is\_const> \textcolor{keyword}{class }\mbox{\hyperlink{classBackwardCDBG}{BackwardCDBG}};} |
| 15 |
\DoxyCodeLine{16 \textcolor{keyword}{template}<\textcolor{keyword}{typename} U, \textcolor{keyword}{typename} G, \textcolor{keywordtype}{bool} is\_const> \textcolor{keyword}{class }\mbox{\hyperlink{classForwardCDBG}{ForwardCDBG}};} |
| 16 |
\DoxyCodeLine{17 \textcolor{keyword}{template}<\textcolor{keyword}{typename} U, \textcolor{keyword}{typename} G, \textcolor{keywordtype}{bool} is\_const> \textcolor{keyword}{class }\mbox{\hyperlink{classneighborIterator}{neighborIterator}};} |
| 17 |
\DoxyCodeLine{18 } |
| 18 |
\DoxyCodeLine{33 \textcolor{keyword}{struct }\mbox{\hyperlink{structUnitigMapBase}{UnitigMapBase}} \{} |
| 19 |
\DoxyCodeLine{34 } |
| 20 |
\DoxyCodeLine{39 \mbox{\hyperlink{structUnitigMapBase_a080e546f9f6a9027490501332b656473}{UnitigMapBase}}(\textcolor{keyword}{const} \textcolor{keywordtype}{size\_t} length = 1);} |
| 21 |
\DoxyCodeLine{40 } |
| 22 |
\DoxyCodeLine{48 \mbox{\hyperlink{structUnitigMapBase_a04975745bfe61f5d067acb13940d2975}{UnitigMapBase}}(\textcolor{keyword}{const} \textcolor{keywordtype}{size\_t} start, \textcolor{keyword}{const} \textcolor{keywordtype}{size\_t} length, \textcolor{keyword}{const} \textcolor{keywordtype}{size\_t} unitig\_sz, \textcolor{keyword}{const} \textcolor{keywordtype}{bool} \mbox{\hyperlink{structUnitigMapBase_a6de6f4a1ccef220e84d097bc3ef0fb3f}{strand}});} |
| 23 |
\DoxyCodeLine{49 } |
| 24 |
\DoxyCodeLine{53 \textcolor{keywordtype}{bool} \mbox{\hyperlink{structUnitigMapBase_ac6965f7af0564e4cfa1e6a77595231c7}{operator==}}(\textcolor{keyword}{const} \mbox{\hyperlink{structUnitigMapBase}{UnitigMapBase}}\& o) \textcolor{keyword}{const};} |
| 25 |
\DoxyCodeLine{54 } |
| 26 |
\DoxyCodeLine{58 \textcolor{keywordtype}{bool} \mbox{\hyperlink{structUnitigMapBase_aa493ccbb29c318a081c4c58544f6461e}{operator!=}}(\textcolor{keyword}{const} \mbox{\hyperlink{structUnitigMapBase}{UnitigMapBase}}\& o) \textcolor{keyword}{const};} |
| 27 |
\DoxyCodeLine{59 } |
| 28 |
\DoxyCodeLine{60 \textcolor{keywordtype}{size\_t} \mbox{\hyperlink{structUnitigMapBase_a5c53f906934df35588b34fc42a89a4a0}{dist}};} |
| 29 |
\DoxyCodeLine{61 \textcolor{keywordtype}{size\_t} \mbox{\hyperlink{structUnitigMapBase_a06a9beaf07e8ae56aa6578b922c2b7c0}{len}};} |
| 30 |
\DoxyCodeLine{62 \textcolor{keywordtype}{size\_t} \mbox{\hyperlink{structUnitigMapBase_adf6bc2dfe176302491c81142fc2e84cc}{size}};} |
| 31 |
\DoxyCodeLine{63 } |
| 32 |
\DoxyCodeLine{64 \textcolor{keywordtype}{bool} \mbox{\hyperlink{structUnitigMapBase_a6de6f4a1ccef220e84d097bc3ef0fb3f}{strand}};} |
| 33 |
\DoxyCodeLine{65 \textcolor{keywordtype}{bool} \mbox{\hyperlink{structUnitigMapBase_ade629940b2611494dbf233cb1144da80}{isEmpty}};} |
| 34 |
\DoxyCodeLine{66 \};} |
| 35 |
\DoxyCodeLine{67 } |
| 36 |
\DoxyCodeLine{91 \textcolor{keyword}{template}<\textcolor{keyword}{typename} Unitig\_data\_t = \textcolor{keywordtype}{void}, \textcolor{keyword}{typename} Graph\_data\_t = \textcolor{keywordtype}{void}, \textcolor{keywordtype}{bool} is\_const = false>} |
| 37 |
\DoxyCodeLine{92 \textcolor{keyword}{class }\mbox{\hyperlink{classUnitigMap}{UnitigMap}} : \textcolor{keyword}{public} \mbox{\hyperlink{structUnitigMapBase}{UnitigMapBase}} \{} |
| 38 |
\DoxyCodeLine{93 } |
| 39 |
\DoxyCodeLine{94 \textcolor{keyword}{typedef} Unitig\_data\_t U;} |
| 40 |
\DoxyCodeLine{95 \textcolor{keyword}{typedef} Graph\_data\_t G;} |
| 41 |
\DoxyCodeLine{96 } |
| 42 |
\DoxyCodeLine{97 \textcolor{keyword}{template}<\textcolor{keyword}{typename} U, \textcolor{keyword}{typename} G> \textcolor{keyword}{friend} \textcolor{keyword}{class }\mbox{\hyperlink{classCompactedDBG}{CompactedDBG}};} |
| 43 |
\DoxyCodeLine{98 \textcolor{keyword}{template}<\textcolor{keyword}{typename} U, \textcolor{keyword}{typename} G, \textcolor{keywordtype}{bool} C> \textcolor{keyword}{friend} \textcolor{keyword}{class }\mbox{\hyperlink{classBackwardCDBG}{BackwardCDBG}};} |
| 44 |
\DoxyCodeLine{99 \textcolor{keyword}{template}<\textcolor{keyword}{typename} U, \textcolor{keyword}{typename} G, \textcolor{keywordtype}{bool} C> \textcolor{keyword}{friend} \textcolor{keyword}{class }\mbox{\hyperlink{classForwardCDBG}{ForwardCDBG}};} |
| 45 |
\DoxyCodeLine{100 \textcolor{keyword}{template}<\textcolor{keyword}{typename} U, \textcolor{keyword}{typename} G, \textcolor{keywordtype}{bool} C> \textcolor{keyword}{friend} \textcolor{keyword}{class }\mbox{\hyperlink{classunitigIterator}{unitigIterator}};} |
| 46 |
\DoxyCodeLine{101 \textcolor{keyword}{template}<\textcolor{keyword}{typename} U, \textcolor{keyword}{typename} G, \textcolor{keywordtype}{bool} C> \textcolor{keyword}{friend} \textcolor{keyword}{class }\mbox{\hyperlink{classUnitigMap}{UnitigMap}};} |
| 47 |
\DoxyCodeLine{102 } |
| 48 |
\DoxyCodeLine{103 \textcolor{keyword}{typedef} \textcolor{keyword}{typename} std::conditional<is\_const, const CompactedDBG<U, G>*, \mbox{\hyperlink{classCompactedDBG}{CompactedDBG<U, G>}}*>::type CompactedDBG\_ptr\_t;} |
| 49 |
\DoxyCodeLine{104 \textcolor{keyword}{typedef} \textcolor{keyword}{typename} std::conditional<is\_const, const U*, U*>::type Unitig\_data\_ptr\_t;} |
| 50 |
\DoxyCodeLine{105 } |
| 51 |
\DoxyCodeLine{106 \textcolor{keyword}{public}:} |
| 52 |
\DoxyCodeLine{107 } |
| 53 |
\DoxyCodeLine{108 \textcolor{keyword}{typedef} \mbox{\hyperlink{classBackwardCDBG}{BackwardCDBG<U, G, is\_const>}} \mbox{\hyperlink{classBackwardCDBG}{UnitigMap\_BW}};} |
| 54 |
\DoxyCodeLine{109 \textcolor{keyword}{typedef} \mbox{\hyperlink{classForwardCDBG}{ForwardCDBG<U, G, is\_const>}} \mbox{\hyperlink{classForwardCDBG}{UnitigMap\_FW}};} |
| 55 |
\DoxyCodeLine{110 } |
| 56 |
\DoxyCodeLine{116 \mbox{\hyperlink{classUnitigMap_a43574c45ceb02111d2bc959e6ed4e717}{UnitigMap}}(\textcolor{keywordtype}{size\_t} length = 1, CompactedDBG\_ptr\_t cdbg\_ = \textcolor{keyword}{nullptr});} |
| 57 |
\DoxyCodeLine{117 } |
| 58 |
\DoxyCodeLine{126 \mbox{\hyperlink{classUnitigMap_a4f632adfd48f44d685c6a311a4197a91}{UnitigMap}}(\textcolor{keyword}{const} \textcolor{keywordtype}{size\_t} start, \textcolor{keyword}{const} \textcolor{keywordtype}{size\_t} length, \textcolor{keyword}{const} \textcolor{keywordtype}{size\_t} unitig\_sz, \textcolor{keyword}{const} \textcolor{keywordtype}{bool} \mbox{\hyperlink{structUnitigMapBase_a6de6f4a1ccef220e84d097bc3ef0fb3f}{strand}});} |
| 59 |
\DoxyCodeLine{127 } |
| 60 |
\DoxyCodeLine{131 \textcolor{keywordtype}{bool} \mbox{\hyperlink{classUnitigMap_a73899498315ff5533c25b1c0fb1ca413}{operator==}}(\textcolor{keyword}{const} \mbox{\hyperlink{classUnitigMap}{UnitigMap}}\& o) \textcolor{keyword}{const};} |
| 61 |
\DoxyCodeLine{132 } |
| 62 |
\DoxyCodeLine{136 \textcolor{keywordtype}{bool} \mbox{\hyperlink{classUnitigMap_a777e853a143be31ff69dd9f54f33d426}{operator!=}}(\textcolor{keyword}{const} \mbox{\hyperlink{classUnitigMap}{UnitigMap}}\& o) \textcolor{keyword}{const};} |
| 63 |
\DoxyCodeLine{137 } |
| 64 |
\DoxyCodeLine{141 \textcolor{keywordtype}{bool} \mbox{\hyperlink{classUnitigMap_a99f771f58cbdc82509cc2f37206e0731}{isSameReferenceUnitig}}(\textcolor{keyword}{const} \mbox{\hyperlink{classUnitigMap}{UnitigMap}}\& o) \textcolor{keyword}{const};} |
| 65 |
\DoxyCodeLine{142 } |
| 66 |
\DoxyCodeLine{147 \textcolor{keywordtype}{string} \mbox{\hyperlink{classUnitigMap_a8a90644ef5f8d4326af8ad2f6438e1dd}{mappedSequenceToString}}() \textcolor{keyword}{const};} |
| 67 |
\DoxyCodeLine{148 } |
| 68 |
\DoxyCodeLine{153 \textcolor{keywordtype}{string} \mbox{\hyperlink{classUnitigMap_a90ab8fbec322df04053b9998c68d2070}{referenceUnitigToString}}() \textcolor{keyword}{const};} |
| 69 |
\DoxyCodeLine{154 } |
| 70 |
\DoxyCodeLine{167 \textcolor{keywordtype}{size\_t} \mbox{\hyperlink{classUnitigMap_a2a80f5a0f55391c57b4f4d83400e30a2}{lcp}}(\textcolor{keyword}{const} \textcolor{keywordtype}{char}* s, \textcolor{keyword}{const} \textcolor{keywordtype}{size\_t} pos\_s = 0, \textcolor{keyword}{const} \textcolor{keywordtype}{size\_t} pos\_um\_seq = 0, \textcolor{keyword}{const} \textcolor{keywordtype}{bool} um\_reversed = \textcolor{keyword}{false}) \textcolor{keyword}{const};} |
| 71 |
\DoxyCodeLine{168 } |
| 72 |
\DoxyCodeLine{173 \mbox{\hyperlink{classKmer}{Kmer}} \mbox{\hyperlink{classUnitigMap_a594c471e4d757273feef67cf4358bafd}{getUnitigHead}}() \textcolor{keyword}{const};} |
| 73 |
\DoxyCodeLine{174 } |
| 74 |
\DoxyCodeLine{179 \mbox{\hyperlink{classKmer}{Kmer}} \mbox{\hyperlink{classUnitigMap_a584488d223cb2f5b00d72342305c6d0e}{getUnitigTail}}() \textcolor{keyword}{const};} |
| 75 |
\DoxyCodeLine{180 } |
| 76 |
\DoxyCodeLine{187 \mbox{\hyperlink{classKmer}{Kmer}} \mbox{\hyperlink{classUnitigMap_a7c8a9b1e16fa29d716550fc93de9d4d7}{getUnitigKmer}}(\textcolor{keyword}{const} \textcolor{keywordtype}{size\_t} pos) \textcolor{keyword}{const};} |
| 77 |
\DoxyCodeLine{188 } |
| 78 |
\DoxyCodeLine{193 \mbox{\hyperlink{classKmer}{Kmer}} \mbox{\hyperlink{classUnitigMap_a18a15516e136f787dc70db5030698548}{getMappedHead}}() \textcolor{keyword}{const};} |
| 79 |
\DoxyCodeLine{194 } |
| 80 |
\DoxyCodeLine{199 \mbox{\hyperlink{classKmer}{Kmer}} \mbox{\hyperlink{classUnitigMap_ab06f79aa91086a8d73ea8200f5cc64d4}{getMappedTail}}() \textcolor{keyword}{const};} |
| 81 |
\DoxyCodeLine{200 } |
| 82 |
\DoxyCodeLine{207 \mbox{\hyperlink{classKmer}{Kmer}} \mbox{\hyperlink{classUnitigMap_a9ac111e6783b3344f0db407d05f1b966}{getMappedKmer}}(\textcolor{keyword}{const} \textcolor{keywordtype}{size\_t} pos) \textcolor{keyword}{const};} |
| 83 |
\DoxyCodeLine{208 } |
| 84 |
\DoxyCodeLine{213 \mbox{\hyperlink{classUnitigMap}{UnitigMap<U, G, is\_const>}} \mbox{\hyperlink{classUnitigMap_aaaedf38011b13955567a4688b5b16fcb}{getKmerMapping}}(\textcolor{keyword}{const} \textcolor{keywordtype}{size\_t} pos) \textcolor{keyword}{const};} |
| 85 |
\DoxyCodeLine{214 } |
| 86 |
\DoxyCodeLine{222 Unitig\_data\_ptr\_t \mbox{\hyperlink{classUnitigMap_a0c40fd1ba2df6af9a0c55b7963e41493}{getData}}() \textcolor{keyword}{const};} |
| 87 |
\DoxyCodeLine{223 } |
| 88 |
\DoxyCodeLine{229 \mbox{\hyperlink{classBackwardCDBG}{UnitigMap\_BW}} \mbox{\hyperlink{classUnitigMap_adfae0ba9c3675fd5612a4b71b46a25c6}{getPredecessors}}() \textcolor{keyword}{const};} |
| 89 |
\DoxyCodeLine{230 } |
| 90 |
\DoxyCodeLine{236 \mbox{\hyperlink{classForwardCDBG}{UnitigMap\_FW}} \mbox{\hyperlink{classUnitigMap_a5b2894e0f78e6b003d06a03a49904b59}{getSuccessors}}() \textcolor{keyword}{const};} |
| 91 |
\DoxyCodeLine{237 } |
| 92 |
\DoxyCodeLine{243 \textcolor{keyword}{inline} CompactedDBG\_ptr\_t \mbox{\hyperlink{classUnitigMap_ab6bc6b4a479bef4a7cb9c72806679f5e}{getGraph}}()\textcolor{keyword}{ const }\{ \textcolor{keywordflow}{return} cdbg; \}} |
| 93 |
\DoxyCodeLine{244 } |
| 94 |
\DoxyCodeLine{245 \textcolor{keyword}{operator} \mbox{\hyperlink{classUnitigMap}{UnitigMap<U, G, true>}}()\textcolor{keyword}{ const }\{} |
| 95 |
\DoxyCodeLine{246 } |
| 96 |
\DoxyCodeLine{247 \mbox{\hyperlink{classUnitigMap}{UnitigMap<U, G, true>}} um(pos\_unitig, \mbox{\hyperlink{structUnitigMapBase_a5c53f906934df35588b34fc42a89a4a0}{dist}}, \mbox{\hyperlink{structUnitigMapBase_a06a9beaf07e8ae56aa6578b922c2b7c0}{len}}, \mbox{\hyperlink{structUnitigMapBase_adf6bc2dfe176302491c81142fc2e84cc}{size}}, isShort, isAbundant, \mbox{\hyperlink{structUnitigMapBase_a6de6f4a1ccef220e84d097bc3ef0fb3f}{strand}}, cdbg);} |
| 97 |
\DoxyCodeLine{248 } |
| 98 |
\DoxyCodeLine{249 um.isEmpty = \mbox{\hyperlink{structUnitigMapBase_ade629940b2611494dbf233cb1144da80}{isEmpty}};} |
| 99 |
\DoxyCodeLine{250 } |
| 100 |
\DoxyCodeLine{251 \textcolor{keywordflow}{return} um;} |
| 101 |
\DoxyCodeLine{252 \}} |
| 102 |
\DoxyCodeLine{253 } |
| 103 |
\DoxyCodeLine{254 \textcolor{keywordtype}{void} setFullCoverage() \textcolor{keyword}{const};} |
| 104 |
\DoxyCodeLine{255 \textcolor{keywordtype}{void} increaseCoverage() \textcolor{keyword}{const};} |
| 105 |
\DoxyCodeLine{256 \textcolor{keywordtype}{void} decreaseCoverage() \textcolor{keyword}{const};} |
| 106 |
\DoxyCodeLine{257 } |
| 107 |
\DoxyCodeLine{258 \textcolor{keywordtype}{bool} isCoverageFull() \textcolor{keyword}{const};} |
| 108 |
\DoxyCodeLine{259 \textcolor{keywordtype}{size\_t} getCoverage(\textcolor{keyword}{const} \textcolor{keywordtype}{size\_t} pos) \textcolor{keyword}{const};} |
| 109 |
\DoxyCodeLine{260 } |
| 110 |
\DoxyCodeLine{261 \textcolor{keyword}{private}:} |
| 111 |
\DoxyCodeLine{262 } |
| 112 |
\DoxyCodeLine{263 \mbox{\hyperlink{classUnitigMap}{UnitigMap}}(\textcolor{keywordtype}{size\_t} p\_unitig, \textcolor{keywordtype}{size\_t} i, \textcolor{keywordtype}{size\_t} l, \textcolor{keywordtype}{size\_t} sz, \textcolor{keywordtype}{bool} short\_, \textcolor{keywordtype}{bool} abundance, \textcolor{keywordtype}{bool} strd, CompactedDBG\_ptr\_t cdbg\_);} |
| 113 |
\DoxyCodeLine{264 } |
| 114 |
\DoxyCodeLine{265 \mbox{\hyperlink{classneighborIterator}{neighborIterator<U, G, is\_const>}} bw\_begin() \textcolor{keyword}{const};} |
| 115 |
\DoxyCodeLine{266 \mbox{\hyperlink{classneighborIterator}{neighborIterator<U, G, is\_const>}} bw\_end() \textcolor{keyword}{const};} |
| 116 |
\DoxyCodeLine{267 } |
| 117 |
\DoxyCodeLine{268 \mbox{\hyperlink{classneighborIterator}{neighborIterator<U, G, is\_const>}} fw\_begin() \textcolor{keyword}{const};} |
| 118 |
\DoxyCodeLine{269 \mbox{\hyperlink{classneighborIterator}{neighborIterator<U, G, is\_const>}} fw\_end() \textcolor{keyword}{const};} |
| 119 |
\DoxyCodeLine{270 } |
| 120 |
\DoxyCodeLine{271 \textcolor{keyword}{template}<\textcolor{keywordtype}{bool} is\_\textcolor{keywordtype}{void}> \textcolor{keyword}{typename} std::enable\_if<!is\_void, Unitig<U>>::type splitData\_(\textcolor{keyword}{const} \textcolor{keywordtype}{bool} last\_split) \textcolor{keyword}{const};} |
| 121 |
\DoxyCodeLine{272 \textcolor{keyword}{template}<\textcolor{keywordtype}{bool} is\_\textcolor{keywordtype}{void}> \textcolor{keyword}{typename} std::enable\_if<is\_void, Unitig<U>>::type splitData\_(\textcolor{keyword}{const} \textcolor{keywordtype}{bool} last\_split) \textcolor{keyword}{const};} |
| 122 |
\DoxyCodeLine{273 } |
| 123 |
\DoxyCodeLine{274 \mbox{\hyperlink{classUnitig}{Unitig<U>}} splitData(\textcolor{keyword}{const} \textcolor{keywordtype}{bool} last\_split) \textcolor{keyword}{const};} |
| 124 |
\DoxyCodeLine{275 } |
| 125 |
\DoxyCodeLine{276 \textcolor{keyword}{template}<\textcolor{keywordtype}{bool} is\_\textcolor{keywordtype}{void}> \textcolor{keyword}{typename} std::enable\_if<!is\_void, Unitig\_data\_ptr\_t>::type getData\_() \textcolor{keyword}{const};} |
| 126 |
\DoxyCodeLine{277 \textcolor{keyword}{template}<\textcolor{keywordtype}{bool} is\_\textcolor{keywordtype}{void}> \textcolor{keyword}{typename} std::enable\_if<is\_void, Unitig\_data\_ptr\_t>::type getData\_() \textcolor{keyword}{const};} |
| 127 |
\DoxyCodeLine{278 } |
| 128 |
\DoxyCodeLine{279 \textcolor{keywordtype}{void} partialCopy(\textcolor{keyword}{const} \mbox{\hyperlink{classUnitigMap}{UnitigMap<U, G, is\_const>}}\& um);} |
| 129 |
\DoxyCodeLine{280 } |
| 130 |
\DoxyCodeLine{281 \textcolor{keywordtype}{size\_t} pos\_unitig; \textcolor{comment}{// unitig pos. in v\_unitigs or km\_unitigs or h\_kmers}} |
| 131 |
\DoxyCodeLine{282 } |
| 132 |
\DoxyCodeLine{283 \textcolor{keywordtype}{bool} isShort; \textcolor{comment}{// true if the unitig has length k}} |
| 133 |
\DoxyCodeLine{284 \textcolor{keywordtype}{bool} isAbundant; \textcolor{comment}{// true if the unitig has length k and has an abundant minimizer}} |
| 134 |
\DoxyCodeLine{285 } |
| 135 |
\DoxyCodeLine{286 CompactedDBG\_ptr\_t cdbg;} |
| 136 |
\DoxyCodeLine{287 \};} |
| 137 |
\DoxyCodeLine{288 } |
| 138 |
\DoxyCodeLine{289 \textcolor{keyword}{template}<\textcolor{keyword}{typename} Unitig\_data\_t = \textcolor{keywordtype}{void}, \textcolor{keyword}{typename} Graph\_data\_t = \textcolor{keywordtype}{void}, \textcolor{keywordtype}{bool} is\_const = false>} |
| 139 |
\DoxyCodeLine{290 \textcolor{keyword}{struct }\mbox{\hyperlink{structUnitigMapHash}{UnitigMapHash}} \{} |
| 140 |
\DoxyCodeLine{291 } |
| 141 |
\DoxyCodeLine{292 \textcolor{keyword}{typedef} Unitig\_data\_t U;} |
| 142 |
\DoxyCodeLine{293 \textcolor{keyword}{typedef} Graph\_data\_t G;} |
| 143 |
\DoxyCodeLine{294 } |
| 144 |
\DoxyCodeLine{295 \textcolor{keywordtype}{size\_t} operator()(\textcolor{keyword}{const} \mbox{\hyperlink{classUnitigMap}{UnitigMap<U, G, is\_const>}}\& um)\textcolor{keyword}{ const }\{} |
| 145 |
\DoxyCodeLine{296 } |
| 146 |
\DoxyCodeLine{297 \textcolor{keyword}{struct }UnitigMapTMP \{} |
| 147 |
\DoxyCodeLine{298 } |
| 148 |
\DoxyCodeLine{299 \textcolor{keywordtype}{size\_t} pos\_unitig; \textcolor{comment}{// unitig pos. in v\_unitigs or km\_unitigs or h\_kmers}} |
| 149 |
\DoxyCodeLine{300 \textcolor{keywordtype}{size\_t} dist;} |
| 150 |
\DoxyCodeLine{301 \textcolor{keywordtype}{size\_t} len;} |
| 151 |
\DoxyCodeLine{302 \textcolor{keywordtype}{size\_t} size;} |
| 152 |
\DoxyCodeLine{303 } |
| 153 |
\DoxyCodeLine{304 \textcolor{keywordtype}{bool} strand;} |
| 154 |
\DoxyCodeLine{305 \textcolor{keywordtype}{bool} isEmpty;} |
| 155 |
\DoxyCodeLine{306 } |
| 156 |
\DoxyCodeLine{307 \textcolor{keywordtype}{bool} isShort; \textcolor{comment}{// true if the unitig has length k}} |
| 157 |
\DoxyCodeLine{308 \textcolor{keywordtype}{bool} isAbundant; \textcolor{comment}{// true if the unitig has length k and has an abundant minimizer}} |
| 158 |
\DoxyCodeLine{309 } |
| 159 |
\DoxyCodeLine{310 \textcolor{keyword}{const} \textcolor{keywordtype}{void}* cdbg;} |
| 160 |
\DoxyCodeLine{311 } |
| 161 |
\DoxyCodeLine{312 UnitigMapTMP(\textcolor{keyword}{const} \mbox{\hyperlink{classUnitigMap}{UnitigMap<U, G, is\_const>}}\& um) : pos\_unitig(um.pos\_unitig), dist(um.\mbox{\hyperlink{structUnitigMapBase_a5c53f906934df35588b34fc42a89a4a0}{dist}}), len(um.\mbox{\hyperlink{structUnitigMapBase_a06a9beaf07e8ae56aa6578b922c2b7c0}{len}}), size(um.\mbox{\hyperlink{structUnitigMapBase_adf6bc2dfe176302491c81142fc2e84cc}{size}}),} |
| 162 |
\DoxyCodeLine{313 strand(um.\mbox{\hyperlink{structUnitigMapBase_a6de6f4a1ccef220e84d097bc3ef0fb3f}{strand}}), isEmpty(um.\mbox{\hyperlink{structUnitigMapBase_ade629940b2611494dbf233cb1144da80}{isEmpty}}), isShort(um.isShort),} |
| 163 |
\DoxyCodeLine{314 isAbundant(um.isAbundant), cdbg(\textcolor{keyword}{static\_cast<}\textcolor{keyword}{const }\textcolor{keywordtype}{void}*\textcolor{keyword}{>}(um.cdbg)) \{\};} |
| 164 |
\DoxyCodeLine{315 \};} |
| 165 |
\DoxyCodeLine{316 } |
| 166 |
\DoxyCodeLine{317 UnitigMapTMP tmp(um);} |
| 167 |
\DoxyCodeLine{318 } |
| 168 |
\DoxyCodeLine{319 \textcolor{comment}{//return static\_cast<size\_t>(XXH64(static\_cast<const void*>(\&tmp), sizeof(UnitigMapTMP), 0));}} |
| 169 |
\DoxyCodeLine{320 \textcolor{keywordflow}{return} \textcolor{keyword}{static\_cast<}\textcolor{keywordtype}{size\_t}\textcolor{keyword}{>}(wyhash(\&tmp, \textcolor{keyword}{sizeof}(UnitigMapTMP), 0, \_wyp));} |
| 170 |
\DoxyCodeLine{321 \}} |
| 171 |
\DoxyCodeLine{322 \};} |
| 172 |
\DoxyCodeLine{323 } |
| 173 |
\DoxyCodeLine{324 \textcolor{preprocessor}{\#include "{}UnitigMap.tcc"{}}} |
| 174 |
\DoxyCodeLine{325 } |
| 175 |
\DoxyCodeLine{326 \textcolor{preprocessor}{\#endif}} |
| 176 |
|
| 177 |
\end{DoxyCode} |