Debian Codegraph @

ext/bifrost/doc/doxygen/latex/NeighborIterator_8hpp_source.tex

raw
1 \hypertarget{NeighborIterator_8hpp_source}{}\doxysection{Neighbor\+Iterator.\+hpp}
2 \label{NeighborIterator_8hpp_source}\index{src/NeighborIterator.hpp@{src/NeighborIterator.hpp}}
3 \mbox{\hyperlink{NeighborIterator_8hpp}{Go to the documentation of this file.}}
4 \begin{DoxyCode}{0}
5 \DoxyCodeLine{1 \textcolor{preprocessor}{\#ifndef BIFROST\_NEIGHBOR\_ITERATOR\_HPP}}
6 \DoxyCodeLine{2 \textcolor{preprocessor}{\#define BIFROST\_NEIGHBOR\_ITERATOR\_HPP}}
7 \DoxyCodeLine{3 }
8 \DoxyCodeLine{4 \textcolor{preprocessor}{\#include "{}\mbox{\hyperlink{Kmer_8hpp}{Kmer.hpp}}"{}}}
9 \DoxyCodeLine{5 }
10 \DoxyCodeLine{11 \textcolor{keyword}{template}<\textcolor{keyword}{typename} U, \textcolor{keyword}{typename} G> \textcolor{keyword}{class }\mbox{\hyperlink{classCompactedDBG}{CompactedDBG}};}
11 \DoxyCodeLine{12 \textcolor{keyword}{template}<\textcolor{keyword}{typename} U, \textcolor{keyword}{typename} G, \textcolor{keywordtype}{bool} is\_const> \textcolor{keyword}{class }\mbox{\hyperlink{classUnitigMap}{UnitigMap}};}
12 \DoxyCodeLine{13 }
13 \DoxyCodeLine{33 \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>}
14 \DoxyCodeLine{34 \textcolor{keyword}{class }\mbox{\hyperlink{classneighborIterator}{neighborIterator}} : \textcolor{keyword}{public} std::iterator<std::input\_iterator\_tag, UnitigMap<Unitig\_data\_t, Graph\_data\_t, is\_const>, int> \{}
15 \DoxyCodeLine{35 }
16 \DoxyCodeLine{36 \textcolor{keyword}{typedef} Unitig\_data\_t U;}
17 \DoxyCodeLine{37 \textcolor{keyword}{typedef} Graph\_data\_t G;}
18 \DoxyCodeLine{38 }
19 \DoxyCodeLine{39 \textcolor{keyword}{public}:}
20 \DoxyCodeLine{40 }
21 \DoxyCodeLine{41 \textcolor{keyword}{typedef} \textcolor{keyword}{typename} std::conditional<is\_const, const CompactedDBG<U, G>*, \mbox{\hyperlink{classCompactedDBG}{CompactedDBG<U, G>}}*>::type CompactedDBG\_ptr\_t;}
22 \DoxyCodeLine{42 }
23 \DoxyCodeLine{46 \mbox{\hyperlink{classneighborIterator_ab857cd8f2e6bb98f844d9316c8e8d5b5}{neighborIterator}}();}
24 \DoxyCodeLine{47 }
25 \DoxyCodeLine{53 \mbox{\hyperlink{classneighborIterator_a3a524d5ee6219ea7ccc3a11f69d80835}{neighborIterator}}(\textcolor{keyword}{const} \mbox{\hyperlink{classUnitigMap}{UnitigMap<U, G, is\_const>}}\& um\_, \textcolor{keyword}{const} \textcolor{keywordtype}{bool} is\_forward\_);}
26 \DoxyCodeLine{54 }
27 \DoxyCodeLine{58 \mbox{\hyperlink{classneighborIterator_ad7ee6efe87e4c4619c96e6c4fae809df}{neighborIterator}}(\textcolor{keyword}{const} \mbox{\hyperlink{classneighborIterator}{neighborIterator}}\& o);}
28 \DoxyCodeLine{59 }
29 \DoxyCodeLine{63 \mbox{\hyperlink{classneighborIterator}{neighborIterator}}\& \mbox{\hyperlink{classneighborIterator_ae547b91b4ed4ef7bee6d0cf9bca10838}{operator++}}();}
30 \DoxyCodeLine{64 }
31 \DoxyCodeLine{68 \mbox{\hyperlink{classneighborIterator}{neighborIterator}} \mbox{\hyperlink{classneighborIterator_a508d1dccf8281fed8abd8aaefb145570}{operator++}}(\textcolor{keywordtype}{int});}
32 \DoxyCodeLine{69 }
33 \DoxyCodeLine{74 \textcolor{keywordtype}{bool} \mbox{\hyperlink{classneighborIterator_a039b30193aefde354eba133a55263b51}{operator==}}(\textcolor{keyword}{const} \mbox{\hyperlink{classneighborIterator}{neighborIterator}}\& o) \textcolor{keyword}{const};}
34 \DoxyCodeLine{75 }
35 \DoxyCodeLine{80 \textcolor{keywordtype}{bool} \mbox{\hyperlink{classneighborIterator_a95d8840e2114007102d64d9013a7169e}{operator!=}}(\textcolor{keyword}{const} \mbox{\hyperlink{classneighborIterator}{neighborIterator}}\& o) \textcolor{keyword}{const};}
36 \DoxyCodeLine{81 }
37 \DoxyCodeLine{85 \textcolor{keyword}{const} \mbox{\hyperlink{classUnitigMap}{UnitigMap<U, G, is\_const>}}\& \mbox{\hyperlink{classneighborIterator_a67a0d38a9b10901ec21f306be785e16b}{operator*}}() \textcolor{keyword}{const};}
38 \DoxyCodeLine{86 }
39 \DoxyCodeLine{90 \textcolor{keyword}{const} \mbox{\hyperlink{classUnitigMap}{UnitigMap<U, G, is\_const>}}* \mbox{\hyperlink{classneighborIterator_a56ff4797158a97429be40650e54dc2a6}{operator-\/>}}() \textcolor{keyword}{const};}
40 \DoxyCodeLine{91 }
41 \DoxyCodeLine{92 \textcolor{keyword}{private}:}
42 \DoxyCodeLine{93 }
43 \DoxyCodeLine{94 \textcolor{keywordtype}{int} i;}
44 \DoxyCodeLine{95 }
45 \DoxyCodeLine{96 \textcolor{keywordtype}{bool} is\_fw;}
46 \DoxyCodeLine{97 }
47 \DoxyCodeLine{98 \mbox{\hyperlink{classKmer}{Kmer}} km\_head;}
48 \DoxyCodeLine{99 \mbox{\hyperlink{classKmer}{Kmer}} km\_tail;}
49 \DoxyCodeLine{100 }
50 \DoxyCodeLine{101 \mbox{\hyperlink{classUnitigMap}{UnitigMap<U, G, is\_const>}} um;}
51 \DoxyCodeLine{102 }
52 \DoxyCodeLine{103 CompactedDBG\_ptr\_t cdbg;}
53 \DoxyCodeLine{104 \};}
54 \DoxyCodeLine{105 }
55 \DoxyCodeLine{115 \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>}
56 \DoxyCodeLine{116 \textcolor{keyword}{class }\mbox{\hyperlink{classBackwardCDBG}{BackwardCDBG}} \{}
57 \DoxyCodeLine{117 }
58 \DoxyCodeLine{118 \textcolor{keyword}{typedef} Unitig\_data\_t U;}
59 \DoxyCodeLine{119 \textcolor{keyword}{typedef} Graph\_data\_t G;}
60 \DoxyCodeLine{120 }
61 \DoxyCodeLine{121 \textcolor{keyword}{public}:}
62 \DoxyCodeLine{122 }
63 \DoxyCodeLine{126 \textcolor{keyword}{explicit} \mbox{\hyperlink{classBackwardCDBG_a7535c34878c4ec0acc0543a3814c35b9}{BackwardCDBG}}(\textcolor{keyword}{const} \mbox{\hyperlink{classUnitigMap}{UnitigMap<U, G, is\_const>}}\& um\_);}
64 \DoxyCodeLine{127 }
65 \DoxyCodeLine{131 \textcolor{keywordtype}{bool} \mbox{\hyperlink{classBackwardCDBG_afd32793764f72b23624fc6384d934412}{hasPredecessors}}() \textcolor{keyword}{const};}
66 \DoxyCodeLine{132 }
67 \DoxyCodeLine{133 \textcolor{keywordtype}{size\_t} cardinality() \textcolor{keyword}{const};}
68 \DoxyCodeLine{134 }
69 \DoxyCodeLine{140 \mbox{\hyperlink{classneighborIterator}{neighborIterator<U, G, is\_const>}} \mbox{\hyperlink{classBackwardCDBG_a2f869bd1b666c2ec9f960102f5dc9652}{begin}}() \textcolor{keyword}{const};}
70 \DoxyCodeLine{141 }
71 \DoxyCodeLine{145 \mbox{\hyperlink{classneighborIterator}{neighborIterator<U, G, is\_const>}} \mbox{\hyperlink{classBackwardCDBG_a1dac75199ce0f4705502843e904af6b0}{end}}() \textcolor{keyword}{const};}
72 \DoxyCodeLine{146 }
73 \DoxyCodeLine{147 \textcolor{keyword}{private}:}
74 \DoxyCodeLine{148 }
75 \DoxyCodeLine{149 \mbox{\hyperlink{classUnitigMap}{UnitigMap<U, G, is\_const>}} um;}
76 \DoxyCodeLine{150 \};}
77 \DoxyCodeLine{151 }
78 \DoxyCodeLine{161 \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>}
79 \DoxyCodeLine{162 \textcolor{keyword}{class }\mbox{\hyperlink{classForwardCDBG}{ForwardCDBG}} \{}
80 \DoxyCodeLine{163 }
81 \DoxyCodeLine{164 \textcolor{keyword}{typedef} Unitig\_data\_t U;}
82 \DoxyCodeLine{165 \textcolor{keyword}{typedef} Graph\_data\_t G;}
83 \DoxyCodeLine{166 }
84 \DoxyCodeLine{167 \textcolor{keyword}{public}:}
85 \DoxyCodeLine{168 }
86 \DoxyCodeLine{172 \textcolor{keyword}{explicit} \mbox{\hyperlink{classForwardCDBG_ae4cc2b8a705fb9555fba4f31bfcc7bdb}{ForwardCDBG}}(\textcolor{keyword}{const} \mbox{\hyperlink{classUnitigMap}{UnitigMap<U, G, is\_const>}}\& um\_);}
87 \DoxyCodeLine{173 }
88 \DoxyCodeLine{177 \textcolor{keywordtype}{bool} \mbox{\hyperlink{classForwardCDBG_a17b11e73f1754c52ff4bb771bdefca08}{hasSuccessors}}() \textcolor{keyword}{const};}
89 \DoxyCodeLine{178 }
90 \DoxyCodeLine{179 \textcolor{keywordtype}{size\_t} cardinality() \textcolor{keyword}{const};}
91 \DoxyCodeLine{180 }
92 \DoxyCodeLine{186 \mbox{\hyperlink{classneighborIterator}{neighborIterator<U, G, is\_const>}} \mbox{\hyperlink{classForwardCDBG_af99aee08a11c9ffe2bfc42d52ce0c152}{begin}}() \textcolor{keyword}{const};}
93 \DoxyCodeLine{187 }
94 \DoxyCodeLine{191 \mbox{\hyperlink{classneighborIterator}{neighborIterator<U, G, is\_const>}} \mbox{\hyperlink{classForwardCDBG_a473b3c82b547730564cd4c43e89622c0}{end}}() \textcolor{keyword}{const};}
95 \DoxyCodeLine{192 }
96 \DoxyCodeLine{193 \textcolor{keyword}{private}:}
97 \DoxyCodeLine{194 }
98 \DoxyCodeLine{195 \mbox{\hyperlink{classUnitigMap}{UnitigMap<U, G, is\_const>}} um;}
99 \DoxyCodeLine{196 \};}
100 \DoxyCodeLine{197 }
101 \DoxyCodeLine{198 \textcolor{preprocessor}{\#include "{}NeighborIterator.tcc"{}}}
102 \DoxyCodeLine{199 }
103 \DoxyCodeLine{200 \textcolor{preprocessor}{\#endif}}
104
105 \end{DoxyCode}