Mercurial > repos > rliterman > csp2
comparison CSP2/CSP2_env/env-d9b9114564458d9d-741b3de822f2aaca6c6caa4325c4afce/include/mash/capnp/MinHash.capnp.h @ 69:33d812a61356
planemo upload commit 2e9511a184a1ca667c7be0c6321a36dc4e3d116d
author | jpayne |
---|---|
date | Tue, 18 Mar 2025 17:55:14 -0400 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
67:0e9998148a16 | 69:33d812a61356 |
---|---|
1 // Generated by Cap'n Proto compiler, DO NOT EDIT | |
2 // source: MinHash.capnp | |
3 | |
4 #pragma once | |
5 | |
6 #include <capnp/generated-header-support.h> | |
7 #include <kj/windows-sanity.h> | |
8 | |
9 #ifndef CAPNP_VERSION | |
10 #error "CAPNP_VERSION is not defined, is capnp/generated-header-support.h missing?" | |
11 #elif CAPNP_VERSION != 1000002 | |
12 #error "Version mismatch between generated code and library headers. You must use the same version of the Cap'n Proto compiler and library." | |
13 #endif | |
14 | |
15 | |
16 CAPNP_BEGIN_HEADER | |
17 | |
18 namespace capnp { | |
19 namespace schemas { | |
20 | |
21 CAPNP_DECLARE_SCHEMA(d9d16806af782606); | |
22 CAPNP_DECLARE_SCHEMA(cf71219d02db7ad0); | |
23 CAPNP_DECLARE_SCHEMA(96c3ea4cbfe143bf); | |
24 CAPNP_DECLARE_SCHEMA(e1ddf186e2b359dd); | |
25 CAPNP_DECLARE_SCHEMA(a648d7188f2259f6); | |
26 | |
27 } // namespace schemas | |
28 } // namespace capnp | |
29 | |
30 namespace capnp { | |
31 | |
32 struct MinHash { | |
33 MinHash() = delete; | |
34 | |
35 class Reader; | |
36 class Builder; | |
37 class Pipeline; | |
38 struct ReferenceList; | |
39 struct LocusList; | |
40 | |
41 struct _capnpPrivate { | |
42 CAPNP_DECLARE_STRUCT_HEADER(d9d16806af782606, 3, 4) | |
43 #if !CAPNP_LITE | |
44 static constexpr ::capnp::_::RawBrandedSchema const* brand() { return &schema->defaultBrand; } | |
45 #endif // !CAPNP_LITE | |
46 }; | |
47 }; | |
48 | |
49 struct MinHash::ReferenceList { | |
50 ReferenceList() = delete; | |
51 | |
52 class Reader; | |
53 class Builder; | |
54 class Pipeline; | |
55 struct Reference; | |
56 | |
57 struct _capnpPrivate { | |
58 CAPNP_DECLARE_STRUCT_HEADER(cf71219d02db7ad0, 0, 1) | |
59 #if !CAPNP_LITE | |
60 static constexpr ::capnp::_::RawBrandedSchema const* brand() { return &schema->defaultBrand; } | |
61 #endif // !CAPNP_LITE | |
62 }; | |
63 }; | |
64 | |
65 struct MinHash::ReferenceList::Reference { | |
66 Reference() = delete; | |
67 | |
68 class Reader; | |
69 class Builder; | |
70 class Pipeline; | |
71 | |
72 struct _capnpPrivate { | |
73 CAPNP_DECLARE_STRUCT_HEADER(96c3ea4cbfe143bf, 2, 7) | |
74 #if !CAPNP_LITE | |
75 static constexpr ::capnp::_::RawBrandedSchema const* brand() { return &schema->defaultBrand; } | |
76 #endif // !CAPNP_LITE | |
77 }; | |
78 }; | |
79 | |
80 struct MinHash::LocusList { | |
81 LocusList() = delete; | |
82 | |
83 class Reader; | |
84 class Builder; | |
85 class Pipeline; | |
86 struct Locus; | |
87 | |
88 struct _capnpPrivate { | |
89 CAPNP_DECLARE_STRUCT_HEADER(e1ddf186e2b359dd, 0, 1) | |
90 #if !CAPNP_LITE | |
91 static constexpr ::capnp::_::RawBrandedSchema const* brand() { return &schema->defaultBrand; } | |
92 #endif // !CAPNP_LITE | |
93 }; | |
94 }; | |
95 | |
96 struct MinHash::LocusList::Locus { | |
97 Locus() = delete; | |
98 | |
99 class Reader; | |
100 class Builder; | |
101 class Pipeline; | |
102 | |
103 struct _capnpPrivate { | |
104 CAPNP_DECLARE_STRUCT_HEADER(a648d7188f2259f6, 3, 0) | |
105 #if !CAPNP_LITE | |
106 static constexpr ::capnp::_::RawBrandedSchema const* brand() { return &schema->defaultBrand; } | |
107 #endif // !CAPNP_LITE | |
108 }; | |
109 }; | |
110 | |
111 // ======================================================================================= | |
112 | |
113 class MinHash::Reader { | |
114 public: | |
115 typedef MinHash Reads; | |
116 | |
117 Reader() = default; | |
118 inline explicit Reader(::capnp::_::StructReader base): _reader(base) {} | |
119 | |
120 inline ::capnp::MessageSize totalSize() const { | |
121 return _reader.totalSize().asPublic(); | |
122 } | |
123 | |
124 #if !CAPNP_LITE | |
125 inline ::kj::StringTree toString() const { | |
126 return ::capnp::_::structString(_reader, *_capnpPrivate::brand()); | |
127 } | |
128 #endif // !CAPNP_LITE | |
129 | |
130 inline ::uint32_t getKmerSize() const; | |
131 | |
132 inline ::uint32_t getWindowSize() const; | |
133 | |
134 inline ::uint32_t getMinHashesPerWindow() const; | |
135 | |
136 inline bool getConcatenated() const; | |
137 | |
138 inline bool hasReferenceListOld() const; | |
139 inline ::capnp::MinHash::ReferenceList::Reader getReferenceListOld() const; | |
140 | |
141 inline bool hasLocusList() const; | |
142 inline ::capnp::MinHash::LocusList::Reader getLocusList() const; | |
143 | |
144 inline float getError() const; | |
145 | |
146 inline bool getNoncanonical() const; | |
147 | |
148 inline bool hasAlphabet() const; | |
149 inline ::capnp::Text::Reader getAlphabet() const; | |
150 | |
151 inline bool getPreserveCase() const; | |
152 | |
153 inline ::uint32_t getHashSeed() const; | |
154 | |
155 inline bool hasReferenceList() const; | |
156 inline ::capnp::MinHash::ReferenceList::Reader getReferenceList() const; | |
157 | |
158 private: | |
159 ::capnp::_::StructReader _reader; | |
160 template <typename, ::capnp::Kind> | |
161 friend struct ::capnp::ToDynamic_; | |
162 template <typename, ::capnp::Kind> | |
163 friend struct ::capnp::_::PointerHelpers; | |
164 template <typename, ::capnp::Kind> | |
165 friend struct ::capnp::List; | |
166 friend class ::capnp::MessageBuilder; | |
167 friend class ::capnp::Orphanage; | |
168 }; | |
169 | |
170 class MinHash::Builder { | |
171 public: | |
172 typedef MinHash Builds; | |
173 | |
174 Builder() = delete; // Deleted to discourage incorrect usage. | |
175 // You can explicitly initialize to nullptr instead. | |
176 inline Builder(decltype(nullptr)) {} | |
177 inline explicit Builder(::capnp::_::StructBuilder base): _builder(base) {} | |
178 inline operator Reader() const { return Reader(_builder.asReader()); } | |
179 inline Reader asReader() const { return *this; } | |
180 | |
181 inline ::capnp::MessageSize totalSize() const { return asReader().totalSize(); } | |
182 #if !CAPNP_LITE | |
183 inline ::kj::StringTree toString() const { return asReader().toString(); } | |
184 #endif // !CAPNP_LITE | |
185 | |
186 inline ::uint32_t getKmerSize(); | |
187 inline void setKmerSize( ::uint32_t value); | |
188 | |
189 inline ::uint32_t getWindowSize(); | |
190 inline void setWindowSize( ::uint32_t value); | |
191 | |
192 inline ::uint32_t getMinHashesPerWindow(); | |
193 inline void setMinHashesPerWindow( ::uint32_t value); | |
194 | |
195 inline bool getConcatenated(); | |
196 inline void setConcatenated(bool value); | |
197 | |
198 inline bool hasReferenceListOld(); | |
199 inline ::capnp::MinHash::ReferenceList::Builder getReferenceListOld(); | |
200 inline void setReferenceListOld( ::capnp::MinHash::ReferenceList::Reader value); | |
201 inline ::capnp::MinHash::ReferenceList::Builder initReferenceListOld(); | |
202 inline void adoptReferenceListOld(::capnp::Orphan< ::capnp::MinHash::ReferenceList>&& value); | |
203 inline ::capnp::Orphan< ::capnp::MinHash::ReferenceList> disownReferenceListOld(); | |
204 | |
205 inline bool hasLocusList(); | |
206 inline ::capnp::MinHash::LocusList::Builder getLocusList(); | |
207 inline void setLocusList( ::capnp::MinHash::LocusList::Reader value); | |
208 inline ::capnp::MinHash::LocusList::Builder initLocusList(); | |
209 inline void adoptLocusList(::capnp::Orphan< ::capnp::MinHash::LocusList>&& value); | |
210 inline ::capnp::Orphan< ::capnp::MinHash::LocusList> disownLocusList(); | |
211 | |
212 inline float getError(); | |
213 inline void setError(float value); | |
214 | |
215 inline bool getNoncanonical(); | |
216 inline void setNoncanonical(bool value); | |
217 | |
218 inline bool hasAlphabet(); | |
219 inline ::capnp::Text::Builder getAlphabet(); | |
220 inline void setAlphabet( ::capnp::Text::Reader value); | |
221 inline ::capnp::Text::Builder initAlphabet(unsigned int size); | |
222 inline void adoptAlphabet(::capnp::Orphan< ::capnp::Text>&& value); | |
223 inline ::capnp::Orphan< ::capnp::Text> disownAlphabet(); | |
224 | |
225 inline bool getPreserveCase(); | |
226 inline void setPreserveCase(bool value); | |
227 | |
228 inline ::uint32_t getHashSeed(); | |
229 inline void setHashSeed( ::uint32_t value); | |
230 | |
231 inline bool hasReferenceList(); | |
232 inline ::capnp::MinHash::ReferenceList::Builder getReferenceList(); | |
233 inline void setReferenceList( ::capnp::MinHash::ReferenceList::Reader value); | |
234 inline ::capnp::MinHash::ReferenceList::Builder initReferenceList(); | |
235 inline void adoptReferenceList(::capnp::Orphan< ::capnp::MinHash::ReferenceList>&& value); | |
236 inline ::capnp::Orphan< ::capnp::MinHash::ReferenceList> disownReferenceList(); | |
237 | |
238 private: | |
239 ::capnp::_::StructBuilder _builder; | |
240 template <typename, ::capnp::Kind> | |
241 friend struct ::capnp::ToDynamic_; | |
242 friend class ::capnp::Orphanage; | |
243 template <typename, ::capnp::Kind> | |
244 friend struct ::capnp::_::PointerHelpers; | |
245 }; | |
246 | |
247 #if !CAPNP_LITE | |
248 class MinHash::Pipeline { | |
249 public: | |
250 typedef MinHash Pipelines; | |
251 | |
252 inline Pipeline(decltype(nullptr)): _typeless(nullptr) {} | |
253 inline explicit Pipeline(::capnp::AnyPointer::Pipeline&& typeless) | |
254 : _typeless(kj::mv(typeless)) {} | |
255 | |
256 inline ::capnp::MinHash::ReferenceList::Pipeline getReferenceListOld(); | |
257 inline ::capnp::MinHash::LocusList::Pipeline getLocusList(); | |
258 inline ::capnp::MinHash::ReferenceList::Pipeline getReferenceList(); | |
259 private: | |
260 ::capnp::AnyPointer::Pipeline _typeless; | |
261 friend class ::capnp::PipelineHook; | |
262 template <typename, ::capnp::Kind> | |
263 friend struct ::capnp::ToDynamic_; | |
264 }; | |
265 #endif // !CAPNP_LITE | |
266 | |
267 class MinHash::ReferenceList::Reader { | |
268 public: | |
269 typedef ReferenceList Reads; | |
270 | |
271 Reader() = default; | |
272 inline explicit Reader(::capnp::_::StructReader base): _reader(base) {} | |
273 | |
274 inline ::capnp::MessageSize totalSize() const { | |
275 return _reader.totalSize().asPublic(); | |
276 } | |
277 | |
278 #if !CAPNP_LITE | |
279 inline ::kj::StringTree toString() const { | |
280 return ::capnp::_::structString(_reader, *_capnpPrivate::brand()); | |
281 } | |
282 #endif // !CAPNP_LITE | |
283 | |
284 inline bool hasReferences() const; | |
285 inline ::capnp::List< ::capnp::MinHash::ReferenceList::Reference, ::capnp::Kind::STRUCT>::Reader getReferences() const; | |
286 | |
287 private: | |
288 ::capnp::_::StructReader _reader; | |
289 template <typename, ::capnp::Kind> | |
290 friend struct ::capnp::ToDynamic_; | |
291 template <typename, ::capnp::Kind> | |
292 friend struct ::capnp::_::PointerHelpers; | |
293 template <typename, ::capnp::Kind> | |
294 friend struct ::capnp::List; | |
295 friend class ::capnp::MessageBuilder; | |
296 friend class ::capnp::Orphanage; | |
297 }; | |
298 | |
299 class MinHash::ReferenceList::Builder { | |
300 public: | |
301 typedef ReferenceList Builds; | |
302 | |
303 Builder() = delete; // Deleted to discourage incorrect usage. | |
304 // You can explicitly initialize to nullptr instead. | |
305 inline Builder(decltype(nullptr)) {} | |
306 inline explicit Builder(::capnp::_::StructBuilder base): _builder(base) {} | |
307 inline operator Reader() const { return Reader(_builder.asReader()); } | |
308 inline Reader asReader() const { return *this; } | |
309 | |
310 inline ::capnp::MessageSize totalSize() const { return asReader().totalSize(); } | |
311 #if !CAPNP_LITE | |
312 inline ::kj::StringTree toString() const { return asReader().toString(); } | |
313 #endif // !CAPNP_LITE | |
314 | |
315 inline bool hasReferences(); | |
316 inline ::capnp::List< ::capnp::MinHash::ReferenceList::Reference, ::capnp::Kind::STRUCT>::Builder getReferences(); | |
317 inline void setReferences( ::capnp::List< ::capnp::MinHash::ReferenceList::Reference, ::capnp::Kind::STRUCT>::Reader value); | |
318 inline ::capnp::List< ::capnp::MinHash::ReferenceList::Reference, ::capnp::Kind::STRUCT>::Builder initReferences(unsigned int size); | |
319 inline void adoptReferences(::capnp::Orphan< ::capnp::List< ::capnp::MinHash::ReferenceList::Reference, ::capnp::Kind::STRUCT>>&& value); | |
320 inline ::capnp::Orphan< ::capnp::List< ::capnp::MinHash::ReferenceList::Reference, ::capnp::Kind::STRUCT>> disownReferences(); | |
321 | |
322 private: | |
323 ::capnp::_::StructBuilder _builder; | |
324 template <typename, ::capnp::Kind> | |
325 friend struct ::capnp::ToDynamic_; | |
326 friend class ::capnp::Orphanage; | |
327 template <typename, ::capnp::Kind> | |
328 friend struct ::capnp::_::PointerHelpers; | |
329 }; | |
330 | |
331 #if !CAPNP_LITE | |
332 class MinHash::ReferenceList::Pipeline { | |
333 public: | |
334 typedef ReferenceList Pipelines; | |
335 | |
336 inline Pipeline(decltype(nullptr)): _typeless(nullptr) {} | |
337 inline explicit Pipeline(::capnp::AnyPointer::Pipeline&& typeless) | |
338 : _typeless(kj::mv(typeless)) {} | |
339 | |
340 private: | |
341 ::capnp::AnyPointer::Pipeline _typeless; | |
342 friend class ::capnp::PipelineHook; | |
343 template <typename, ::capnp::Kind> | |
344 friend struct ::capnp::ToDynamic_; | |
345 }; | |
346 #endif // !CAPNP_LITE | |
347 | |
348 class MinHash::ReferenceList::Reference::Reader { | |
349 public: | |
350 typedef Reference Reads; | |
351 | |
352 Reader() = default; | |
353 inline explicit Reader(::capnp::_::StructReader base): _reader(base) {} | |
354 | |
355 inline ::capnp::MessageSize totalSize() const { | |
356 return _reader.totalSize().asPublic(); | |
357 } | |
358 | |
359 #if !CAPNP_LITE | |
360 inline ::kj::StringTree toString() const { | |
361 return ::capnp::_::structString(_reader, *_capnpPrivate::brand()); | |
362 } | |
363 #endif // !CAPNP_LITE | |
364 | |
365 inline bool hasSequence() const; | |
366 inline ::capnp::Text::Reader getSequence() const; | |
367 | |
368 inline bool hasQuality() const; | |
369 inline ::capnp::Text::Reader getQuality() const; | |
370 | |
371 inline ::uint32_t getLength() const; | |
372 | |
373 inline bool hasName() const; | |
374 inline ::capnp::Text::Reader getName() const; | |
375 | |
376 inline bool hasComment() const; | |
377 inline ::capnp::Text::Reader getComment() const; | |
378 | |
379 inline bool hasHashes32() const; | |
380 inline ::capnp::List< ::uint32_t, ::capnp::Kind::PRIMITIVE>::Reader getHashes32() const; | |
381 | |
382 inline bool hasHashes64() const; | |
383 inline ::capnp::List< ::uint64_t, ::capnp::Kind::PRIMITIVE>::Reader getHashes64() const; | |
384 | |
385 inline ::uint64_t getLength64() const; | |
386 | |
387 inline bool hasCounts32() const; | |
388 inline ::capnp::List< ::uint32_t, ::capnp::Kind::PRIMITIVE>::Reader getCounts32() const; | |
389 | |
390 private: | |
391 ::capnp::_::StructReader _reader; | |
392 template <typename, ::capnp::Kind> | |
393 friend struct ::capnp::ToDynamic_; | |
394 template <typename, ::capnp::Kind> | |
395 friend struct ::capnp::_::PointerHelpers; | |
396 template <typename, ::capnp::Kind> | |
397 friend struct ::capnp::List; | |
398 friend class ::capnp::MessageBuilder; | |
399 friend class ::capnp::Orphanage; | |
400 }; | |
401 | |
402 class MinHash::ReferenceList::Reference::Builder { | |
403 public: | |
404 typedef Reference Builds; | |
405 | |
406 Builder() = delete; // Deleted to discourage incorrect usage. | |
407 // You can explicitly initialize to nullptr instead. | |
408 inline Builder(decltype(nullptr)) {} | |
409 inline explicit Builder(::capnp::_::StructBuilder base): _builder(base) {} | |
410 inline operator Reader() const { return Reader(_builder.asReader()); } | |
411 inline Reader asReader() const { return *this; } | |
412 | |
413 inline ::capnp::MessageSize totalSize() const { return asReader().totalSize(); } | |
414 #if !CAPNP_LITE | |
415 inline ::kj::StringTree toString() const { return asReader().toString(); } | |
416 #endif // !CAPNP_LITE | |
417 | |
418 inline bool hasSequence(); | |
419 inline ::capnp::Text::Builder getSequence(); | |
420 inline void setSequence( ::capnp::Text::Reader value); | |
421 inline ::capnp::Text::Builder initSequence(unsigned int size); | |
422 inline void adoptSequence(::capnp::Orphan< ::capnp::Text>&& value); | |
423 inline ::capnp::Orphan< ::capnp::Text> disownSequence(); | |
424 | |
425 inline bool hasQuality(); | |
426 inline ::capnp::Text::Builder getQuality(); | |
427 inline void setQuality( ::capnp::Text::Reader value); | |
428 inline ::capnp::Text::Builder initQuality(unsigned int size); | |
429 inline void adoptQuality(::capnp::Orphan< ::capnp::Text>&& value); | |
430 inline ::capnp::Orphan< ::capnp::Text> disownQuality(); | |
431 | |
432 inline ::uint32_t getLength(); | |
433 inline void setLength( ::uint32_t value); | |
434 | |
435 inline bool hasName(); | |
436 inline ::capnp::Text::Builder getName(); | |
437 inline void setName( ::capnp::Text::Reader value); | |
438 inline ::capnp::Text::Builder initName(unsigned int size); | |
439 inline void adoptName(::capnp::Orphan< ::capnp::Text>&& value); | |
440 inline ::capnp::Orphan< ::capnp::Text> disownName(); | |
441 | |
442 inline bool hasComment(); | |
443 inline ::capnp::Text::Builder getComment(); | |
444 inline void setComment( ::capnp::Text::Reader value); | |
445 inline ::capnp::Text::Builder initComment(unsigned int size); | |
446 inline void adoptComment(::capnp::Orphan< ::capnp::Text>&& value); | |
447 inline ::capnp::Orphan< ::capnp::Text> disownComment(); | |
448 | |
449 inline bool hasHashes32(); | |
450 inline ::capnp::List< ::uint32_t, ::capnp::Kind::PRIMITIVE>::Builder getHashes32(); | |
451 inline void setHashes32( ::capnp::List< ::uint32_t, ::capnp::Kind::PRIMITIVE>::Reader value); | |
452 inline void setHashes32(::kj::ArrayPtr<const ::uint32_t> value); | |
453 inline ::capnp::List< ::uint32_t, ::capnp::Kind::PRIMITIVE>::Builder initHashes32(unsigned int size); | |
454 inline void adoptHashes32(::capnp::Orphan< ::capnp::List< ::uint32_t, ::capnp::Kind::PRIMITIVE>>&& value); | |
455 inline ::capnp::Orphan< ::capnp::List< ::uint32_t, ::capnp::Kind::PRIMITIVE>> disownHashes32(); | |
456 | |
457 inline bool hasHashes64(); | |
458 inline ::capnp::List< ::uint64_t, ::capnp::Kind::PRIMITIVE>::Builder getHashes64(); | |
459 inline void setHashes64( ::capnp::List< ::uint64_t, ::capnp::Kind::PRIMITIVE>::Reader value); | |
460 inline void setHashes64(::kj::ArrayPtr<const ::uint64_t> value); | |
461 inline ::capnp::List< ::uint64_t, ::capnp::Kind::PRIMITIVE>::Builder initHashes64(unsigned int size); | |
462 inline void adoptHashes64(::capnp::Orphan< ::capnp::List< ::uint64_t, ::capnp::Kind::PRIMITIVE>>&& value); | |
463 inline ::capnp::Orphan< ::capnp::List< ::uint64_t, ::capnp::Kind::PRIMITIVE>> disownHashes64(); | |
464 | |
465 inline ::uint64_t getLength64(); | |
466 inline void setLength64( ::uint64_t value); | |
467 | |
468 inline bool hasCounts32(); | |
469 inline ::capnp::List< ::uint32_t, ::capnp::Kind::PRIMITIVE>::Builder getCounts32(); | |
470 inline void setCounts32( ::capnp::List< ::uint32_t, ::capnp::Kind::PRIMITIVE>::Reader value); | |
471 inline void setCounts32(::kj::ArrayPtr<const ::uint32_t> value); | |
472 inline ::capnp::List< ::uint32_t, ::capnp::Kind::PRIMITIVE>::Builder initCounts32(unsigned int size); | |
473 inline void adoptCounts32(::capnp::Orphan< ::capnp::List< ::uint32_t, ::capnp::Kind::PRIMITIVE>>&& value); | |
474 inline ::capnp::Orphan< ::capnp::List< ::uint32_t, ::capnp::Kind::PRIMITIVE>> disownCounts32(); | |
475 | |
476 private: | |
477 ::capnp::_::StructBuilder _builder; | |
478 template <typename, ::capnp::Kind> | |
479 friend struct ::capnp::ToDynamic_; | |
480 friend class ::capnp::Orphanage; | |
481 template <typename, ::capnp::Kind> | |
482 friend struct ::capnp::_::PointerHelpers; | |
483 }; | |
484 | |
485 #if !CAPNP_LITE | |
486 class MinHash::ReferenceList::Reference::Pipeline { | |
487 public: | |
488 typedef Reference Pipelines; | |
489 | |
490 inline Pipeline(decltype(nullptr)): _typeless(nullptr) {} | |
491 inline explicit Pipeline(::capnp::AnyPointer::Pipeline&& typeless) | |
492 : _typeless(kj::mv(typeless)) {} | |
493 | |
494 private: | |
495 ::capnp::AnyPointer::Pipeline _typeless; | |
496 friend class ::capnp::PipelineHook; | |
497 template <typename, ::capnp::Kind> | |
498 friend struct ::capnp::ToDynamic_; | |
499 }; | |
500 #endif // !CAPNP_LITE | |
501 | |
502 class MinHash::LocusList::Reader { | |
503 public: | |
504 typedef LocusList Reads; | |
505 | |
506 Reader() = default; | |
507 inline explicit Reader(::capnp::_::StructReader base): _reader(base) {} | |
508 | |
509 inline ::capnp::MessageSize totalSize() const { | |
510 return _reader.totalSize().asPublic(); | |
511 } | |
512 | |
513 #if !CAPNP_LITE | |
514 inline ::kj::StringTree toString() const { | |
515 return ::capnp::_::structString(_reader, *_capnpPrivate::brand()); | |
516 } | |
517 #endif // !CAPNP_LITE | |
518 | |
519 inline bool hasLoci() const; | |
520 inline ::capnp::List< ::capnp::MinHash::LocusList::Locus, ::capnp::Kind::STRUCT>::Reader getLoci() const; | |
521 | |
522 private: | |
523 ::capnp::_::StructReader _reader; | |
524 template <typename, ::capnp::Kind> | |
525 friend struct ::capnp::ToDynamic_; | |
526 template <typename, ::capnp::Kind> | |
527 friend struct ::capnp::_::PointerHelpers; | |
528 template <typename, ::capnp::Kind> | |
529 friend struct ::capnp::List; | |
530 friend class ::capnp::MessageBuilder; | |
531 friend class ::capnp::Orphanage; | |
532 }; | |
533 | |
534 class MinHash::LocusList::Builder { | |
535 public: | |
536 typedef LocusList Builds; | |
537 | |
538 Builder() = delete; // Deleted to discourage incorrect usage. | |
539 // You can explicitly initialize to nullptr instead. | |
540 inline Builder(decltype(nullptr)) {} | |
541 inline explicit Builder(::capnp::_::StructBuilder base): _builder(base) {} | |
542 inline operator Reader() const { return Reader(_builder.asReader()); } | |
543 inline Reader asReader() const { return *this; } | |
544 | |
545 inline ::capnp::MessageSize totalSize() const { return asReader().totalSize(); } | |
546 #if !CAPNP_LITE | |
547 inline ::kj::StringTree toString() const { return asReader().toString(); } | |
548 #endif // !CAPNP_LITE | |
549 | |
550 inline bool hasLoci(); | |
551 inline ::capnp::List< ::capnp::MinHash::LocusList::Locus, ::capnp::Kind::STRUCT>::Builder getLoci(); | |
552 inline void setLoci( ::capnp::List< ::capnp::MinHash::LocusList::Locus, ::capnp::Kind::STRUCT>::Reader value); | |
553 inline ::capnp::List< ::capnp::MinHash::LocusList::Locus, ::capnp::Kind::STRUCT>::Builder initLoci(unsigned int size); | |
554 inline void adoptLoci(::capnp::Orphan< ::capnp::List< ::capnp::MinHash::LocusList::Locus, ::capnp::Kind::STRUCT>>&& value); | |
555 inline ::capnp::Orphan< ::capnp::List< ::capnp::MinHash::LocusList::Locus, ::capnp::Kind::STRUCT>> disownLoci(); | |
556 | |
557 private: | |
558 ::capnp::_::StructBuilder _builder; | |
559 template <typename, ::capnp::Kind> | |
560 friend struct ::capnp::ToDynamic_; | |
561 friend class ::capnp::Orphanage; | |
562 template <typename, ::capnp::Kind> | |
563 friend struct ::capnp::_::PointerHelpers; | |
564 }; | |
565 | |
566 #if !CAPNP_LITE | |
567 class MinHash::LocusList::Pipeline { | |
568 public: | |
569 typedef LocusList Pipelines; | |
570 | |
571 inline Pipeline(decltype(nullptr)): _typeless(nullptr) {} | |
572 inline explicit Pipeline(::capnp::AnyPointer::Pipeline&& typeless) | |
573 : _typeless(kj::mv(typeless)) {} | |
574 | |
575 private: | |
576 ::capnp::AnyPointer::Pipeline _typeless; | |
577 friend class ::capnp::PipelineHook; | |
578 template <typename, ::capnp::Kind> | |
579 friend struct ::capnp::ToDynamic_; | |
580 }; | |
581 #endif // !CAPNP_LITE | |
582 | |
583 class MinHash::LocusList::Locus::Reader { | |
584 public: | |
585 typedef Locus Reads; | |
586 | |
587 Reader() = default; | |
588 inline explicit Reader(::capnp::_::StructReader base): _reader(base) {} | |
589 | |
590 inline ::capnp::MessageSize totalSize() const { | |
591 return _reader.totalSize().asPublic(); | |
592 } | |
593 | |
594 #if !CAPNP_LITE | |
595 inline ::kj::StringTree toString() const { | |
596 return ::capnp::_::structString(_reader, *_capnpPrivate::brand()); | |
597 } | |
598 #endif // !CAPNP_LITE | |
599 | |
600 inline ::uint32_t getSequence() const; | |
601 | |
602 inline ::uint32_t getPosition() const; | |
603 | |
604 inline ::uint32_t getHash32() const; | |
605 | |
606 inline ::uint64_t getHash64() const; | |
607 | |
608 private: | |
609 ::capnp::_::StructReader _reader; | |
610 template <typename, ::capnp::Kind> | |
611 friend struct ::capnp::ToDynamic_; | |
612 template <typename, ::capnp::Kind> | |
613 friend struct ::capnp::_::PointerHelpers; | |
614 template <typename, ::capnp::Kind> | |
615 friend struct ::capnp::List; | |
616 friend class ::capnp::MessageBuilder; | |
617 friend class ::capnp::Orphanage; | |
618 }; | |
619 | |
620 class MinHash::LocusList::Locus::Builder { | |
621 public: | |
622 typedef Locus Builds; | |
623 | |
624 Builder() = delete; // Deleted to discourage incorrect usage. | |
625 // You can explicitly initialize to nullptr instead. | |
626 inline Builder(decltype(nullptr)) {} | |
627 inline explicit Builder(::capnp::_::StructBuilder base): _builder(base) {} | |
628 inline operator Reader() const { return Reader(_builder.asReader()); } | |
629 inline Reader asReader() const { return *this; } | |
630 | |
631 inline ::capnp::MessageSize totalSize() const { return asReader().totalSize(); } | |
632 #if !CAPNP_LITE | |
633 inline ::kj::StringTree toString() const { return asReader().toString(); } | |
634 #endif // !CAPNP_LITE | |
635 | |
636 inline ::uint32_t getSequence(); | |
637 inline void setSequence( ::uint32_t value); | |
638 | |
639 inline ::uint32_t getPosition(); | |
640 inline void setPosition( ::uint32_t value); | |
641 | |
642 inline ::uint32_t getHash32(); | |
643 inline void setHash32( ::uint32_t value); | |
644 | |
645 inline ::uint64_t getHash64(); | |
646 inline void setHash64( ::uint64_t value); | |
647 | |
648 private: | |
649 ::capnp::_::StructBuilder _builder; | |
650 template <typename, ::capnp::Kind> | |
651 friend struct ::capnp::ToDynamic_; | |
652 friend class ::capnp::Orphanage; | |
653 template <typename, ::capnp::Kind> | |
654 friend struct ::capnp::_::PointerHelpers; | |
655 }; | |
656 | |
657 #if !CAPNP_LITE | |
658 class MinHash::LocusList::Locus::Pipeline { | |
659 public: | |
660 typedef Locus Pipelines; | |
661 | |
662 inline Pipeline(decltype(nullptr)): _typeless(nullptr) {} | |
663 inline explicit Pipeline(::capnp::AnyPointer::Pipeline&& typeless) | |
664 : _typeless(kj::mv(typeless)) {} | |
665 | |
666 private: | |
667 ::capnp::AnyPointer::Pipeline _typeless; | |
668 friend class ::capnp::PipelineHook; | |
669 template <typename, ::capnp::Kind> | |
670 friend struct ::capnp::ToDynamic_; | |
671 }; | |
672 #endif // !CAPNP_LITE | |
673 | |
674 // ======================================================================================= | |
675 | |
676 inline ::uint32_t MinHash::Reader::getKmerSize() const { | |
677 return _reader.getDataField< ::uint32_t>( | |
678 ::capnp::bounded<0>() * ::capnp::ELEMENTS); | |
679 } | |
680 | |
681 inline ::uint32_t MinHash::Builder::getKmerSize() { | |
682 return _builder.getDataField< ::uint32_t>( | |
683 ::capnp::bounded<0>() * ::capnp::ELEMENTS); | |
684 } | |
685 inline void MinHash::Builder::setKmerSize( ::uint32_t value) { | |
686 _builder.setDataField< ::uint32_t>( | |
687 ::capnp::bounded<0>() * ::capnp::ELEMENTS, value); | |
688 } | |
689 | |
690 inline ::uint32_t MinHash::Reader::getWindowSize() const { | |
691 return _reader.getDataField< ::uint32_t>( | |
692 ::capnp::bounded<1>() * ::capnp::ELEMENTS); | |
693 } | |
694 | |
695 inline ::uint32_t MinHash::Builder::getWindowSize() { | |
696 return _builder.getDataField< ::uint32_t>( | |
697 ::capnp::bounded<1>() * ::capnp::ELEMENTS); | |
698 } | |
699 inline void MinHash::Builder::setWindowSize( ::uint32_t value) { | |
700 _builder.setDataField< ::uint32_t>( | |
701 ::capnp::bounded<1>() * ::capnp::ELEMENTS, value); | |
702 } | |
703 | |
704 inline ::uint32_t MinHash::Reader::getMinHashesPerWindow() const { | |
705 return _reader.getDataField< ::uint32_t>( | |
706 ::capnp::bounded<2>() * ::capnp::ELEMENTS); | |
707 } | |
708 | |
709 inline ::uint32_t MinHash::Builder::getMinHashesPerWindow() { | |
710 return _builder.getDataField< ::uint32_t>( | |
711 ::capnp::bounded<2>() * ::capnp::ELEMENTS); | |
712 } | |
713 inline void MinHash::Builder::setMinHashesPerWindow( ::uint32_t value) { | |
714 _builder.setDataField< ::uint32_t>( | |
715 ::capnp::bounded<2>() * ::capnp::ELEMENTS, value); | |
716 } | |
717 | |
718 inline bool MinHash::Reader::getConcatenated() const { | |
719 return _reader.getDataField<bool>( | |
720 ::capnp::bounded<96>() * ::capnp::ELEMENTS); | |
721 } | |
722 | |
723 inline bool MinHash::Builder::getConcatenated() { | |
724 return _builder.getDataField<bool>( | |
725 ::capnp::bounded<96>() * ::capnp::ELEMENTS); | |
726 } | |
727 inline void MinHash::Builder::setConcatenated(bool value) { | |
728 _builder.setDataField<bool>( | |
729 ::capnp::bounded<96>() * ::capnp::ELEMENTS, value); | |
730 } | |
731 | |
732 inline bool MinHash::Reader::hasReferenceListOld() const { | |
733 return !_reader.getPointerField( | |
734 ::capnp::bounded<0>() * ::capnp::POINTERS).isNull(); | |
735 } | |
736 inline bool MinHash::Builder::hasReferenceListOld() { | |
737 return !_builder.getPointerField( | |
738 ::capnp::bounded<0>() * ::capnp::POINTERS).isNull(); | |
739 } | |
740 inline ::capnp::MinHash::ReferenceList::Reader MinHash::Reader::getReferenceListOld() const { | |
741 return ::capnp::_::PointerHelpers< ::capnp::MinHash::ReferenceList>::get(_reader.getPointerField( | |
742 ::capnp::bounded<0>() * ::capnp::POINTERS)); | |
743 } | |
744 inline ::capnp::MinHash::ReferenceList::Builder MinHash::Builder::getReferenceListOld() { | |
745 return ::capnp::_::PointerHelpers< ::capnp::MinHash::ReferenceList>::get(_builder.getPointerField( | |
746 ::capnp::bounded<0>() * ::capnp::POINTERS)); | |
747 } | |
748 #if !CAPNP_LITE | |
749 inline ::capnp::MinHash::ReferenceList::Pipeline MinHash::Pipeline::getReferenceListOld() { | |
750 return ::capnp::MinHash::ReferenceList::Pipeline(_typeless.getPointerField(0)); | |
751 } | |
752 #endif // !CAPNP_LITE | |
753 inline void MinHash::Builder::setReferenceListOld( ::capnp::MinHash::ReferenceList::Reader value) { | |
754 ::capnp::_::PointerHelpers< ::capnp::MinHash::ReferenceList>::set(_builder.getPointerField( | |
755 ::capnp::bounded<0>() * ::capnp::POINTERS), value); | |
756 } | |
757 inline ::capnp::MinHash::ReferenceList::Builder MinHash::Builder::initReferenceListOld() { | |
758 return ::capnp::_::PointerHelpers< ::capnp::MinHash::ReferenceList>::init(_builder.getPointerField( | |
759 ::capnp::bounded<0>() * ::capnp::POINTERS)); | |
760 } | |
761 inline void MinHash::Builder::adoptReferenceListOld( | |
762 ::capnp::Orphan< ::capnp::MinHash::ReferenceList>&& value) { | |
763 ::capnp::_::PointerHelpers< ::capnp::MinHash::ReferenceList>::adopt(_builder.getPointerField( | |
764 ::capnp::bounded<0>() * ::capnp::POINTERS), kj::mv(value)); | |
765 } | |
766 inline ::capnp::Orphan< ::capnp::MinHash::ReferenceList> MinHash::Builder::disownReferenceListOld() { | |
767 return ::capnp::_::PointerHelpers< ::capnp::MinHash::ReferenceList>::disown(_builder.getPointerField( | |
768 ::capnp::bounded<0>() * ::capnp::POINTERS)); | |
769 } | |
770 | |
771 inline bool MinHash::Reader::hasLocusList() const { | |
772 return !_reader.getPointerField( | |
773 ::capnp::bounded<1>() * ::capnp::POINTERS).isNull(); | |
774 } | |
775 inline bool MinHash::Builder::hasLocusList() { | |
776 return !_builder.getPointerField( | |
777 ::capnp::bounded<1>() * ::capnp::POINTERS).isNull(); | |
778 } | |
779 inline ::capnp::MinHash::LocusList::Reader MinHash::Reader::getLocusList() const { | |
780 return ::capnp::_::PointerHelpers< ::capnp::MinHash::LocusList>::get(_reader.getPointerField( | |
781 ::capnp::bounded<1>() * ::capnp::POINTERS)); | |
782 } | |
783 inline ::capnp::MinHash::LocusList::Builder MinHash::Builder::getLocusList() { | |
784 return ::capnp::_::PointerHelpers< ::capnp::MinHash::LocusList>::get(_builder.getPointerField( | |
785 ::capnp::bounded<1>() * ::capnp::POINTERS)); | |
786 } | |
787 #if !CAPNP_LITE | |
788 inline ::capnp::MinHash::LocusList::Pipeline MinHash::Pipeline::getLocusList() { | |
789 return ::capnp::MinHash::LocusList::Pipeline(_typeless.getPointerField(1)); | |
790 } | |
791 #endif // !CAPNP_LITE | |
792 inline void MinHash::Builder::setLocusList( ::capnp::MinHash::LocusList::Reader value) { | |
793 ::capnp::_::PointerHelpers< ::capnp::MinHash::LocusList>::set(_builder.getPointerField( | |
794 ::capnp::bounded<1>() * ::capnp::POINTERS), value); | |
795 } | |
796 inline ::capnp::MinHash::LocusList::Builder MinHash::Builder::initLocusList() { | |
797 return ::capnp::_::PointerHelpers< ::capnp::MinHash::LocusList>::init(_builder.getPointerField( | |
798 ::capnp::bounded<1>() * ::capnp::POINTERS)); | |
799 } | |
800 inline void MinHash::Builder::adoptLocusList( | |
801 ::capnp::Orphan< ::capnp::MinHash::LocusList>&& value) { | |
802 ::capnp::_::PointerHelpers< ::capnp::MinHash::LocusList>::adopt(_builder.getPointerField( | |
803 ::capnp::bounded<1>() * ::capnp::POINTERS), kj::mv(value)); | |
804 } | |
805 inline ::capnp::Orphan< ::capnp::MinHash::LocusList> MinHash::Builder::disownLocusList() { | |
806 return ::capnp::_::PointerHelpers< ::capnp::MinHash::LocusList>::disown(_builder.getPointerField( | |
807 ::capnp::bounded<1>() * ::capnp::POINTERS)); | |
808 } | |
809 | |
810 inline float MinHash::Reader::getError() const { | |
811 return _reader.getDataField<float>( | |
812 ::capnp::bounded<4>() * ::capnp::ELEMENTS); | |
813 } | |
814 | |
815 inline float MinHash::Builder::getError() { | |
816 return _builder.getDataField<float>( | |
817 ::capnp::bounded<4>() * ::capnp::ELEMENTS); | |
818 } | |
819 inline void MinHash::Builder::setError(float value) { | |
820 _builder.setDataField<float>( | |
821 ::capnp::bounded<4>() * ::capnp::ELEMENTS, value); | |
822 } | |
823 | |
824 inline bool MinHash::Reader::getNoncanonical() const { | |
825 return _reader.getDataField<bool>( | |
826 ::capnp::bounded<97>() * ::capnp::ELEMENTS); | |
827 } | |
828 | |
829 inline bool MinHash::Builder::getNoncanonical() { | |
830 return _builder.getDataField<bool>( | |
831 ::capnp::bounded<97>() * ::capnp::ELEMENTS); | |
832 } | |
833 inline void MinHash::Builder::setNoncanonical(bool value) { | |
834 _builder.setDataField<bool>( | |
835 ::capnp::bounded<97>() * ::capnp::ELEMENTS, value); | |
836 } | |
837 | |
838 inline bool MinHash::Reader::hasAlphabet() const { | |
839 return !_reader.getPointerField( | |
840 ::capnp::bounded<2>() * ::capnp::POINTERS).isNull(); | |
841 } | |
842 inline bool MinHash::Builder::hasAlphabet() { | |
843 return !_builder.getPointerField( | |
844 ::capnp::bounded<2>() * ::capnp::POINTERS).isNull(); | |
845 } | |
846 inline ::capnp::Text::Reader MinHash::Reader::getAlphabet() const { | |
847 return ::capnp::_::PointerHelpers< ::capnp::Text>::get(_reader.getPointerField( | |
848 ::capnp::bounded<2>() * ::capnp::POINTERS)); | |
849 } | |
850 inline ::capnp::Text::Builder MinHash::Builder::getAlphabet() { | |
851 return ::capnp::_::PointerHelpers< ::capnp::Text>::get(_builder.getPointerField( | |
852 ::capnp::bounded<2>() * ::capnp::POINTERS)); | |
853 } | |
854 inline void MinHash::Builder::setAlphabet( ::capnp::Text::Reader value) { | |
855 ::capnp::_::PointerHelpers< ::capnp::Text>::set(_builder.getPointerField( | |
856 ::capnp::bounded<2>() * ::capnp::POINTERS), value); | |
857 } | |
858 inline ::capnp::Text::Builder MinHash::Builder::initAlphabet(unsigned int size) { | |
859 return ::capnp::_::PointerHelpers< ::capnp::Text>::init(_builder.getPointerField( | |
860 ::capnp::bounded<2>() * ::capnp::POINTERS), size); | |
861 } | |
862 inline void MinHash::Builder::adoptAlphabet( | |
863 ::capnp::Orphan< ::capnp::Text>&& value) { | |
864 ::capnp::_::PointerHelpers< ::capnp::Text>::adopt(_builder.getPointerField( | |
865 ::capnp::bounded<2>() * ::capnp::POINTERS), kj::mv(value)); | |
866 } | |
867 inline ::capnp::Orphan< ::capnp::Text> MinHash::Builder::disownAlphabet() { | |
868 return ::capnp::_::PointerHelpers< ::capnp::Text>::disown(_builder.getPointerField( | |
869 ::capnp::bounded<2>() * ::capnp::POINTERS)); | |
870 } | |
871 | |
872 inline bool MinHash::Reader::getPreserveCase() const { | |
873 return _reader.getDataField<bool>( | |
874 ::capnp::bounded<98>() * ::capnp::ELEMENTS); | |
875 } | |
876 | |
877 inline bool MinHash::Builder::getPreserveCase() { | |
878 return _builder.getDataField<bool>( | |
879 ::capnp::bounded<98>() * ::capnp::ELEMENTS); | |
880 } | |
881 inline void MinHash::Builder::setPreserveCase(bool value) { | |
882 _builder.setDataField<bool>( | |
883 ::capnp::bounded<98>() * ::capnp::ELEMENTS, value); | |
884 } | |
885 | |
886 inline ::uint32_t MinHash::Reader::getHashSeed() const { | |
887 return _reader.getDataField< ::uint32_t>( | |
888 ::capnp::bounded<5>() * ::capnp::ELEMENTS, 42u); | |
889 } | |
890 | |
891 inline ::uint32_t MinHash::Builder::getHashSeed() { | |
892 return _builder.getDataField< ::uint32_t>( | |
893 ::capnp::bounded<5>() * ::capnp::ELEMENTS, 42u); | |
894 } | |
895 inline void MinHash::Builder::setHashSeed( ::uint32_t value) { | |
896 _builder.setDataField< ::uint32_t>( | |
897 ::capnp::bounded<5>() * ::capnp::ELEMENTS, value, 42u); | |
898 } | |
899 | |
900 inline bool MinHash::Reader::hasReferenceList() const { | |
901 return !_reader.getPointerField( | |
902 ::capnp::bounded<3>() * ::capnp::POINTERS).isNull(); | |
903 } | |
904 inline bool MinHash::Builder::hasReferenceList() { | |
905 return !_builder.getPointerField( | |
906 ::capnp::bounded<3>() * ::capnp::POINTERS).isNull(); | |
907 } | |
908 inline ::capnp::MinHash::ReferenceList::Reader MinHash::Reader::getReferenceList() const { | |
909 return ::capnp::_::PointerHelpers< ::capnp::MinHash::ReferenceList>::get(_reader.getPointerField( | |
910 ::capnp::bounded<3>() * ::capnp::POINTERS)); | |
911 } | |
912 inline ::capnp::MinHash::ReferenceList::Builder MinHash::Builder::getReferenceList() { | |
913 return ::capnp::_::PointerHelpers< ::capnp::MinHash::ReferenceList>::get(_builder.getPointerField( | |
914 ::capnp::bounded<3>() * ::capnp::POINTERS)); | |
915 } | |
916 #if !CAPNP_LITE | |
917 inline ::capnp::MinHash::ReferenceList::Pipeline MinHash::Pipeline::getReferenceList() { | |
918 return ::capnp::MinHash::ReferenceList::Pipeline(_typeless.getPointerField(3)); | |
919 } | |
920 #endif // !CAPNP_LITE | |
921 inline void MinHash::Builder::setReferenceList( ::capnp::MinHash::ReferenceList::Reader value) { | |
922 ::capnp::_::PointerHelpers< ::capnp::MinHash::ReferenceList>::set(_builder.getPointerField( | |
923 ::capnp::bounded<3>() * ::capnp::POINTERS), value); | |
924 } | |
925 inline ::capnp::MinHash::ReferenceList::Builder MinHash::Builder::initReferenceList() { | |
926 return ::capnp::_::PointerHelpers< ::capnp::MinHash::ReferenceList>::init(_builder.getPointerField( | |
927 ::capnp::bounded<3>() * ::capnp::POINTERS)); | |
928 } | |
929 inline void MinHash::Builder::adoptReferenceList( | |
930 ::capnp::Orphan< ::capnp::MinHash::ReferenceList>&& value) { | |
931 ::capnp::_::PointerHelpers< ::capnp::MinHash::ReferenceList>::adopt(_builder.getPointerField( | |
932 ::capnp::bounded<3>() * ::capnp::POINTERS), kj::mv(value)); | |
933 } | |
934 inline ::capnp::Orphan< ::capnp::MinHash::ReferenceList> MinHash::Builder::disownReferenceList() { | |
935 return ::capnp::_::PointerHelpers< ::capnp::MinHash::ReferenceList>::disown(_builder.getPointerField( | |
936 ::capnp::bounded<3>() * ::capnp::POINTERS)); | |
937 } | |
938 | |
939 inline bool MinHash::ReferenceList::Reader::hasReferences() const { | |
940 return !_reader.getPointerField( | |
941 ::capnp::bounded<0>() * ::capnp::POINTERS).isNull(); | |
942 } | |
943 inline bool MinHash::ReferenceList::Builder::hasReferences() { | |
944 return !_builder.getPointerField( | |
945 ::capnp::bounded<0>() * ::capnp::POINTERS).isNull(); | |
946 } | |
947 inline ::capnp::List< ::capnp::MinHash::ReferenceList::Reference, ::capnp::Kind::STRUCT>::Reader MinHash::ReferenceList::Reader::getReferences() const { | |
948 return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::MinHash::ReferenceList::Reference, ::capnp::Kind::STRUCT>>::get(_reader.getPointerField( | |
949 ::capnp::bounded<0>() * ::capnp::POINTERS)); | |
950 } | |
951 inline ::capnp::List< ::capnp::MinHash::ReferenceList::Reference, ::capnp::Kind::STRUCT>::Builder MinHash::ReferenceList::Builder::getReferences() { | |
952 return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::MinHash::ReferenceList::Reference, ::capnp::Kind::STRUCT>>::get(_builder.getPointerField( | |
953 ::capnp::bounded<0>() * ::capnp::POINTERS)); | |
954 } | |
955 inline void MinHash::ReferenceList::Builder::setReferences( ::capnp::List< ::capnp::MinHash::ReferenceList::Reference, ::capnp::Kind::STRUCT>::Reader value) { | |
956 ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::MinHash::ReferenceList::Reference, ::capnp::Kind::STRUCT>>::set(_builder.getPointerField( | |
957 ::capnp::bounded<0>() * ::capnp::POINTERS), value); | |
958 } | |
959 inline ::capnp::List< ::capnp::MinHash::ReferenceList::Reference, ::capnp::Kind::STRUCT>::Builder MinHash::ReferenceList::Builder::initReferences(unsigned int size) { | |
960 return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::MinHash::ReferenceList::Reference, ::capnp::Kind::STRUCT>>::init(_builder.getPointerField( | |
961 ::capnp::bounded<0>() * ::capnp::POINTERS), size); | |
962 } | |
963 inline void MinHash::ReferenceList::Builder::adoptReferences( | |
964 ::capnp::Orphan< ::capnp::List< ::capnp::MinHash::ReferenceList::Reference, ::capnp::Kind::STRUCT>>&& value) { | |
965 ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::MinHash::ReferenceList::Reference, ::capnp::Kind::STRUCT>>::adopt(_builder.getPointerField( | |
966 ::capnp::bounded<0>() * ::capnp::POINTERS), kj::mv(value)); | |
967 } | |
968 inline ::capnp::Orphan< ::capnp::List< ::capnp::MinHash::ReferenceList::Reference, ::capnp::Kind::STRUCT>> MinHash::ReferenceList::Builder::disownReferences() { | |
969 return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::MinHash::ReferenceList::Reference, ::capnp::Kind::STRUCT>>::disown(_builder.getPointerField( | |
970 ::capnp::bounded<0>() * ::capnp::POINTERS)); | |
971 } | |
972 | |
973 inline bool MinHash::ReferenceList::Reference::Reader::hasSequence() const { | |
974 return !_reader.getPointerField( | |
975 ::capnp::bounded<0>() * ::capnp::POINTERS).isNull(); | |
976 } | |
977 inline bool MinHash::ReferenceList::Reference::Builder::hasSequence() { | |
978 return !_builder.getPointerField( | |
979 ::capnp::bounded<0>() * ::capnp::POINTERS).isNull(); | |
980 } | |
981 inline ::capnp::Text::Reader MinHash::ReferenceList::Reference::Reader::getSequence() const { | |
982 return ::capnp::_::PointerHelpers< ::capnp::Text>::get(_reader.getPointerField( | |
983 ::capnp::bounded<0>() * ::capnp::POINTERS)); | |
984 } | |
985 inline ::capnp::Text::Builder MinHash::ReferenceList::Reference::Builder::getSequence() { | |
986 return ::capnp::_::PointerHelpers< ::capnp::Text>::get(_builder.getPointerField( | |
987 ::capnp::bounded<0>() * ::capnp::POINTERS)); | |
988 } | |
989 inline void MinHash::ReferenceList::Reference::Builder::setSequence( ::capnp::Text::Reader value) { | |
990 ::capnp::_::PointerHelpers< ::capnp::Text>::set(_builder.getPointerField( | |
991 ::capnp::bounded<0>() * ::capnp::POINTERS), value); | |
992 } | |
993 inline ::capnp::Text::Builder MinHash::ReferenceList::Reference::Builder::initSequence(unsigned int size) { | |
994 return ::capnp::_::PointerHelpers< ::capnp::Text>::init(_builder.getPointerField( | |
995 ::capnp::bounded<0>() * ::capnp::POINTERS), size); | |
996 } | |
997 inline void MinHash::ReferenceList::Reference::Builder::adoptSequence( | |
998 ::capnp::Orphan< ::capnp::Text>&& value) { | |
999 ::capnp::_::PointerHelpers< ::capnp::Text>::adopt(_builder.getPointerField( | |
1000 ::capnp::bounded<0>() * ::capnp::POINTERS), kj::mv(value)); | |
1001 } | |
1002 inline ::capnp::Orphan< ::capnp::Text> MinHash::ReferenceList::Reference::Builder::disownSequence() { | |
1003 return ::capnp::_::PointerHelpers< ::capnp::Text>::disown(_builder.getPointerField( | |
1004 ::capnp::bounded<0>() * ::capnp::POINTERS)); | |
1005 } | |
1006 | |
1007 inline bool MinHash::ReferenceList::Reference::Reader::hasQuality() const { | |
1008 return !_reader.getPointerField( | |
1009 ::capnp::bounded<1>() * ::capnp::POINTERS).isNull(); | |
1010 } | |
1011 inline bool MinHash::ReferenceList::Reference::Builder::hasQuality() { | |
1012 return !_builder.getPointerField( | |
1013 ::capnp::bounded<1>() * ::capnp::POINTERS).isNull(); | |
1014 } | |
1015 inline ::capnp::Text::Reader MinHash::ReferenceList::Reference::Reader::getQuality() const { | |
1016 return ::capnp::_::PointerHelpers< ::capnp::Text>::get(_reader.getPointerField( | |
1017 ::capnp::bounded<1>() * ::capnp::POINTERS)); | |
1018 } | |
1019 inline ::capnp::Text::Builder MinHash::ReferenceList::Reference::Builder::getQuality() { | |
1020 return ::capnp::_::PointerHelpers< ::capnp::Text>::get(_builder.getPointerField( | |
1021 ::capnp::bounded<1>() * ::capnp::POINTERS)); | |
1022 } | |
1023 inline void MinHash::ReferenceList::Reference::Builder::setQuality( ::capnp::Text::Reader value) { | |
1024 ::capnp::_::PointerHelpers< ::capnp::Text>::set(_builder.getPointerField( | |
1025 ::capnp::bounded<1>() * ::capnp::POINTERS), value); | |
1026 } | |
1027 inline ::capnp::Text::Builder MinHash::ReferenceList::Reference::Builder::initQuality(unsigned int size) { | |
1028 return ::capnp::_::PointerHelpers< ::capnp::Text>::init(_builder.getPointerField( | |
1029 ::capnp::bounded<1>() * ::capnp::POINTERS), size); | |
1030 } | |
1031 inline void MinHash::ReferenceList::Reference::Builder::adoptQuality( | |
1032 ::capnp::Orphan< ::capnp::Text>&& value) { | |
1033 ::capnp::_::PointerHelpers< ::capnp::Text>::adopt(_builder.getPointerField( | |
1034 ::capnp::bounded<1>() * ::capnp::POINTERS), kj::mv(value)); | |
1035 } | |
1036 inline ::capnp::Orphan< ::capnp::Text> MinHash::ReferenceList::Reference::Builder::disownQuality() { | |
1037 return ::capnp::_::PointerHelpers< ::capnp::Text>::disown(_builder.getPointerField( | |
1038 ::capnp::bounded<1>() * ::capnp::POINTERS)); | |
1039 } | |
1040 | |
1041 inline ::uint32_t MinHash::ReferenceList::Reference::Reader::getLength() const { | |
1042 return _reader.getDataField< ::uint32_t>( | |
1043 ::capnp::bounded<0>() * ::capnp::ELEMENTS); | |
1044 } | |
1045 | |
1046 inline ::uint32_t MinHash::ReferenceList::Reference::Builder::getLength() { | |
1047 return _builder.getDataField< ::uint32_t>( | |
1048 ::capnp::bounded<0>() * ::capnp::ELEMENTS); | |
1049 } | |
1050 inline void MinHash::ReferenceList::Reference::Builder::setLength( ::uint32_t value) { | |
1051 _builder.setDataField< ::uint32_t>( | |
1052 ::capnp::bounded<0>() * ::capnp::ELEMENTS, value); | |
1053 } | |
1054 | |
1055 inline bool MinHash::ReferenceList::Reference::Reader::hasName() const { | |
1056 return !_reader.getPointerField( | |
1057 ::capnp::bounded<2>() * ::capnp::POINTERS).isNull(); | |
1058 } | |
1059 inline bool MinHash::ReferenceList::Reference::Builder::hasName() { | |
1060 return !_builder.getPointerField( | |
1061 ::capnp::bounded<2>() * ::capnp::POINTERS).isNull(); | |
1062 } | |
1063 inline ::capnp::Text::Reader MinHash::ReferenceList::Reference::Reader::getName() const { | |
1064 return ::capnp::_::PointerHelpers< ::capnp::Text>::get(_reader.getPointerField( | |
1065 ::capnp::bounded<2>() * ::capnp::POINTERS)); | |
1066 } | |
1067 inline ::capnp::Text::Builder MinHash::ReferenceList::Reference::Builder::getName() { | |
1068 return ::capnp::_::PointerHelpers< ::capnp::Text>::get(_builder.getPointerField( | |
1069 ::capnp::bounded<2>() * ::capnp::POINTERS)); | |
1070 } | |
1071 inline void MinHash::ReferenceList::Reference::Builder::setName( ::capnp::Text::Reader value) { | |
1072 ::capnp::_::PointerHelpers< ::capnp::Text>::set(_builder.getPointerField( | |
1073 ::capnp::bounded<2>() * ::capnp::POINTERS), value); | |
1074 } | |
1075 inline ::capnp::Text::Builder MinHash::ReferenceList::Reference::Builder::initName(unsigned int size) { | |
1076 return ::capnp::_::PointerHelpers< ::capnp::Text>::init(_builder.getPointerField( | |
1077 ::capnp::bounded<2>() * ::capnp::POINTERS), size); | |
1078 } | |
1079 inline void MinHash::ReferenceList::Reference::Builder::adoptName( | |
1080 ::capnp::Orphan< ::capnp::Text>&& value) { | |
1081 ::capnp::_::PointerHelpers< ::capnp::Text>::adopt(_builder.getPointerField( | |
1082 ::capnp::bounded<2>() * ::capnp::POINTERS), kj::mv(value)); | |
1083 } | |
1084 inline ::capnp::Orphan< ::capnp::Text> MinHash::ReferenceList::Reference::Builder::disownName() { | |
1085 return ::capnp::_::PointerHelpers< ::capnp::Text>::disown(_builder.getPointerField( | |
1086 ::capnp::bounded<2>() * ::capnp::POINTERS)); | |
1087 } | |
1088 | |
1089 inline bool MinHash::ReferenceList::Reference::Reader::hasComment() const { | |
1090 return !_reader.getPointerField( | |
1091 ::capnp::bounded<3>() * ::capnp::POINTERS).isNull(); | |
1092 } | |
1093 inline bool MinHash::ReferenceList::Reference::Builder::hasComment() { | |
1094 return !_builder.getPointerField( | |
1095 ::capnp::bounded<3>() * ::capnp::POINTERS).isNull(); | |
1096 } | |
1097 inline ::capnp::Text::Reader MinHash::ReferenceList::Reference::Reader::getComment() const { | |
1098 return ::capnp::_::PointerHelpers< ::capnp::Text>::get(_reader.getPointerField( | |
1099 ::capnp::bounded<3>() * ::capnp::POINTERS)); | |
1100 } | |
1101 inline ::capnp::Text::Builder MinHash::ReferenceList::Reference::Builder::getComment() { | |
1102 return ::capnp::_::PointerHelpers< ::capnp::Text>::get(_builder.getPointerField( | |
1103 ::capnp::bounded<3>() * ::capnp::POINTERS)); | |
1104 } | |
1105 inline void MinHash::ReferenceList::Reference::Builder::setComment( ::capnp::Text::Reader value) { | |
1106 ::capnp::_::PointerHelpers< ::capnp::Text>::set(_builder.getPointerField( | |
1107 ::capnp::bounded<3>() * ::capnp::POINTERS), value); | |
1108 } | |
1109 inline ::capnp::Text::Builder MinHash::ReferenceList::Reference::Builder::initComment(unsigned int size) { | |
1110 return ::capnp::_::PointerHelpers< ::capnp::Text>::init(_builder.getPointerField( | |
1111 ::capnp::bounded<3>() * ::capnp::POINTERS), size); | |
1112 } | |
1113 inline void MinHash::ReferenceList::Reference::Builder::adoptComment( | |
1114 ::capnp::Orphan< ::capnp::Text>&& value) { | |
1115 ::capnp::_::PointerHelpers< ::capnp::Text>::adopt(_builder.getPointerField( | |
1116 ::capnp::bounded<3>() * ::capnp::POINTERS), kj::mv(value)); | |
1117 } | |
1118 inline ::capnp::Orphan< ::capnp::Text> MinHash::ReferenceList::Reference::Builder::disownComment() { | |
1119 return ::capnp::_::PointerHelpers< ::capnp::Text>::disown(_builder.getPointerField( | |
1120 ::capnp::bounded<3>() * ::capnp::POINTERS)); | |
1121 } | |
1122 | |
1123 inline bool MinHash::ReferenceList::Reference::Reader::hasHashes32() const { | |
1124 return !_reader.getPointerField( | |
1125 ::capnp::bounded<4>() * ::capnp::POINTERS).isNull(); | |
1126 } | |
1127 inline bool MinHash::ReferenceList::Reference::Builder::hasHashes32() { | |
1128 return !_builder.getPointerField( | |
1129 ::capnp::bounded<4>() * ::capnp::POINTERS).isNull(); | |
1130 } | |
1131 inline ::capnp::List< ::uint32_t, ::capnp::Kind::PRIMITIVE>::Reader MinHash::ReferenceList::Reference::Reader::getHashes32() const { | |
1132 return ::capnp::_::PointerHelpers< ::capnp::List< ::uint32_t, ::capnp::Kind::PRIMITIVE>>::get(_reader.getPointerField( | |
1133 ::capnp::bounded<4>() * ::capnp::POINTERS)); | |
1134 } | |
1135 inline ::capnp::List< ::uint32_t, ::capnp::Kind::PRIMITIVE>::Builder MinHash::ReferenceList::Reference::Builder::getHashes32() { | |
1136 return ::capnp::_::PointerHelpers< ::capnp::List< ::uint32_t, ::capnp::Kind::PRIMITIVE>>::get(_builder.getPointerField( | |
1137 ::capnp::bounded<4>() * ::capnp::POINTERS)); | |
1138 } | |
1139 inline void MinHash::ReferenceList::Reference::Builder::setHashes32( ::capnp::List< ::uint32_t, ::capnp::Kind::PRIMITIVE>::Reader value) { | |
1140 ::capnp::_::PointerHelpers< ::capnp::List< ::uint32_t, ::capnp::Kind::PRIMITIVE>>::set(_builder.getPointerField( | |
1141 ::capnp::bounded<4>() * ::capnp::POINTERS), value); | |
1142 } | |
1143 inline void MinHash::ReferenceList::Reference::Builder::setHashes32(::kj::ArrayPtr<const ::uint32_t> value) { | |
1144 ::capnp::_::PointerHelpers< ::capnp::List< ::uint32_t, ::capnp::Kind::PRIMITIVE>>::set(_builder.getPointerField( | |
1145 ::capnp::bounded<4>() * ::capnp::POINTERS), value); | |
1146 } | |
1147 inline ::capnp::List< ::uint32_t, ::capnp::Kind::PRIMITIVE>::Builder MinHash::ReferenceList::Reference::Builder::initHashes32(unsigned int size) { | |
1148 return ::capnp::_::PointerHelpers< ::capnp::List< ::uint32_t, ::capnp::Kind::PRIMITIVE>>::init(_builder.getPointerField( | |
1149 ::capnp::bounded<4>() * ::capnp::POINTERS), size); | |
1150 } | |
1151 inline void MinHash::ReferenceList::Reference::Builder::adoptHashes32( | |
1152 ::capnp::Orphan< ::capnp::List< ::uint32_t, ::capnp::Kind::PRIMITIVE>>&& value) { | |
1153 ::capnp::_::PointerHelpers< ::capnp::List< ::uint32_t, ::capnp::Kind::PRIMITIVE>>::adopt(_builder.getPointerField( | |
1154 ::capnp::bounded<4>() * ::capnp::POINTERS), kj::mv(value)); | |
1155 } | |
1156 inline ::capnp::Orphan< ::capnp::List< ::uint32_t, ::capnp::Kind::PRIMITIVE>> MinHash::ReferenceList::Reference::Builder::disownHashes32() { | |
1157 return ::capnp::_::PointerHelpers< ::capnp::List< ::uint32_t, ::capnp::Kind::PRIMITIVE>>::disown(_builder.getPointerField( | |
1158 ::capnp::bounded<4>() * ::capnp::POINTERS)); | |
1159 } | |
1160 | |
1161 inline bool MinHash::ReferenceList::Reference::Reader::hasHashes64() const { | |
1162 return !_reader.getPointerField( | |
1163 ::capnp::bounded<5>() * ::capnp::POINTERS).isNull(); | |
1164 } | |
1165 inline bool MinHash::ReferenceList::Reference::Builder::hasHashes64() { | |
1166 return !_builder.getPointerField( | |
1167 ::capnp::bounded<5>() * ::capnp::POINTERS).isNull(); | |
1168 } | |
1169 inline ::capnp::List< ::uint64_t, ::capnp::Kind::PRIMITIVE>::Reader MinHash::ReferenceList::Reference::Reader::getHashes64() const { | |
1170 return ::capnp::_::PointerHelpers< ::capnp::List< ::uint64_t, ::capnp::Kind::PRIMITIVE>>::get(_reader.getPointerField( | |
1171 ::capnp::bounded<5>() * ::capnp::POINTERS)); | |
1172 } | |
1173 inline ::capnp::List< ::uint64_t, ::capnp::Kind::PRIMITIVE>::Builder MinHash::ReferenceList::Reference::Builder::getHashes64() { | |
1174 return ::capnp::_::PointerHelpers< ::capnp::List< ::uint64_t, ::capnp::Kind::PRIMITIVE>>::get(_builder.getPointerField( | |
1175 ::capnp::bounded<5>() * ::capnp::POINTERS)); | |
1176 } | |
1177 inline void MinHash::ReferenceList::Reference::Builder::setHashes64( ::capnp::List< ::uint64_t, ::capnp::Kind::PRIMITIVE>::Reader value) { | |
1178 ::capnp::_::PointerHelpers< ::capnp::List< ::uint64_t, ::capnp::Kind::PRIMITIVE>>::set(_builder.getPointerField( | |
1179 ::capnp::bounded<5>() * ::capnp::POINTERS), value); | |
1180 } | |
1181 inline void MinHash::ReferenceList::Reference::Builder::setHashes64(::kj::ArrayPtr<const ::uint64_t> value) { | |
1182 ::capnp::_::PointerHelpers< ::capnp::List< ::uint64_t, ::capnp::Kind::PRIMITIVE>>::set(_builder.getPointerField( | |
1183 ::capnp::bounded<5>() * ::capnp::POINTERS), value); | |
1184 } | |
1185 inline ::capnp::List< ::uint64_t, ::capnp::Kind::PRIMITIVE>::Builder MinHash::ReferenceList::Reference::Builder::initHashes64(unsigned int size) { | |
1186 return ::capnp::_::PointerHelpers< ::capnp::List< ::uint64_t, ::capnp::Kind::PRIMITIVE>>::init(_builder.getPointerField( | |
1187 ::capnp::bounded<5>() * ::capnp::POINTERS), size); | |
1188 } | |
1189 inline void MinHash::ReferenceList::Reference::Builder::adoptHashes64( | |
1190 ::capnp::Orphan< ::capnp::List< ::uint64_t, ::capnp::Kind::PRIMITIVE>>&& value) { | |
1191 ::capnp::_::PointerHelpers< ::capnp::List< ::uint64_t, ::capnp::Kind::PRIMITIVE>>::adopt(_builder.getPointerField( | |
1192 ::capnp::bounded<5>() * ::capnp::POINTERS), kj::mv(value)); | |
1193 } | |
1194 inline ::capnp::Orphan< ::capnp::List< ::uint64_t, ::capnp::Kind::PRIMITIVE>> MinHash::ReferenceList::Reference::Builder::disownHashes64() { | |
1195 return ::capnp::_::PointerHelpers< ::capnp::List< ::uint64_t, ::capnp::Kind::PRIMITIVE>>::disown(_builder.getPointerField( | |
1196 ::capnp::bounded<5>() * ::capnp::POINTERS)); | |
1197 } | |
1198 | |
1199 inline ::uint64_t MinHash::ReferenceList::Reference::Reader::getLength64() const { | |
1200 return _reader.getDataField< ::uint64_t>( | |
1201 ::capnp::bounded<1>() * ::capnp::ELEMENTS); | |
1202 } | |
1203 | |
1204 inline ::uint64_t MinHash::ReferenceList::Reference::Builder::getLength64() { | |
1205 return _builder.getDataField< ::uint64_t>( | |
1206 ::capnp::bounded<1>() * ::capnp::ELEMENTS); | |
1207 } | |
1208 inline void MinHash::ReferenceList::Reference::Builder::setLength64( ::uint64_t value) { | |
1209 _builder.setDataField< ::uint64_t>( | |
1210 ::capnp::bounded<1>() * ::capnp::ELEMENTS, value); | |
1211 } | |
1212 | |
1213 inline bool MinHash::ReferenceList::Reference::Reader::hasCounts32() const { | |
1214 return !_reader.getPointerField( | |
1215 ::capnp::bounded<6>() * ::capnp::POINTERS).isNull(); | |
1216 } | |
1217 inline bool MinHash::ReferenceList::Reference::Builder::hasCounts32() { | |
1218 return !_builder.getPointerField( | |
1219 ::capnp::bounded<6>() * ::capnp::POINTERS).isNull(); | |
1220 } | |
1221 inline ::capnp::List< ::uint32_t, ::capnp::Kind::PRIMITIVE>::Reader MinHash::ReferenceList::Reference::Reader::getCounts32() const { | |
1222 return ::capnp::_::PointerHelpers< ::capnp::List< ::uint32_t, ::capnp::Kind::PRIMITIVE>>::get(_reader.getPointerField( | |
1223 ::capnp::bounded<6>() * ::capnp::POINTERS)); | |
1224 } | |
1225 inline ::capnp::List< ::uint32_t, ::capnp::Kind::PRIMITIVE>::Builder MinHash::ReferenceList::Reference::Builder::getCounts32() { | |
1226 return ::capnp::_::PointerHelpers< ::capnp::List< ::uint32_t, ::capnp::Kind::PRIMITIVE>>::get(_builder.getPointerField( | |
1227 ::capnp::bounded<6>() * ::capnp::POINTERS)); | |
1228 } | |
1229 inline void MinHash::ReferenceList::Reference::Builder::setCounts32( ::capnp::List< ::uint32_t, ::capnp::Kind::PRIMITIVE>::Reader value) { | |
1230 ::capnp::_::PointerHelpers< ::capnp::List< ::uint32_t, ::capnp::Kind::PRIMITIVE>>::set(_builder.getPointerField( | |
1231 ::capnp::bounded<6>() * ::capnp::POINTERS), value); | |
1232 } | |
1233 inline void MinHash::ReferenceList::Reference::Builder::setCounts32(::kj::ArrayPtr<const ::uint32_t> value) { | |
1234 ::capnp::_::PointerHelpers< ::capnp::List< ::uint32_t, ::capnp::Kind::PRIMITIVE>>::set(_builder.getPointerField( | |
1235 ::capnp::bounded<6>() * ::capnp::POINTERS), value); | |
1236 } | |
1237 inline ::capnp::List< ::uint32_t, ::capnp::Kind::PRIMITIVE>::Builder MinHash::ReferenceList::Reference::Builder::initCounts32(unsigned int size) { | |
1238 return ::capnp::_::PointerHelpers< ::capnp::List< ::uint32_t, ::capnp::Kind::PRIMITIVE>>::init(_builder.getPointerField( | |
1239 ::capnp::bounded<6>() * ::capnp::POINTERS), size); | |
1240 } | |
1241 inline void MinHash::ReferenceList::Reference::Builder::adoptCounts32( | |
1242 ::capnp::Orphan< ::capnp::List< ::uint32_t, ::capnp::Kind::PRIMITIVE>>&& value) { | |
1243 ::capnp::_::PointerHelpers< ::capnp::List< ::uint32_t, ::capnp::Kind::PRIMITIVE>>::adopt(_builder.getPointerField( | |
1244 ::capnp::bounded<6>() * ::capnp::POINTERS), kj::mv(value)); | |
1245 } | |
1246 inline ::capnp::Orphan< ::capnp::List< ::uint32_t, ::capnp::Kind::PRIMITIVE>> MinHash::ReferenceList::Reference::Builder::disownCounts32() { | |
1247 return ::capnp::_::PointerHelpers< ::capnp::List< ::uint32_t, ::capnp::Kind::PRIMITIVE>>::disown(_builder.getPointerField( | |
1248 ::capnp::bounded<6>() * ::capnp::POINTERS)); | |
1249 } | |
1250 | |
1251 inline bool MinHash::LocusList::Reader::hasLoci() const { | |
1252 return !_reader.getPointerField( | |
1253 ::capnp::bounded<0>() * ::capnp::POINTERS).isNull(); | |
1254 } | |
1255 inline bool MinHash::LocusList::Builder::hasLoci() { | |
1256 return !_builder.getPointerField( | |
1257 ::capnp::bounded<0>() * ::capnp::POINTERS).isNull(); | |
1258 } | |
1259 inline ::capnp::List< ::capnp::MinHash::LocusList::Locus, ::capnp::Kind::STRUCT>::Reader MinHash::LocusList::Reader::getLoci() const { | |
1260 return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::MinHash::LocusList::Locus, ::capnp::Kind::STRUCT>>::get(_reader.getPointerField( | |
1261 ::capnp::bounded<0>() * ::capnp::POINTERS)); | |
1262 } | |
1263 inline ::capnp::List< ::capnp::MinHash::LocusList::Locus, ::capnp::Kind::STRUCT>::Builder MinHash::LocusList::Builder::getLoci() { | |
1264 return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::MinHash::LocusList::Locus, ::capnp::Kind::STRUCT>>::get(_builder.getPointerField( | |
1265 ::capnp::bounded<0>() * ::capnp::POINTERS)); | |
1266 } | |
1267 inline void MinHash::LocusList::Builder::setLoci( ::capnp::List< ::capnp::MinHash::LocusList::Locus, ::capnp::Kind::STRUCT>::Reader value) { | |
1268 ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::MinHash::LocusList::Locus, ::capnp::Kind::STRUCT>>::set(_builder.getPointerField( | |
1269 ::capnp::bounded<0>() * ::capnp::POINTERS), value); | |
1270 } | |
1271 inline ::capnp::List< ::capnp::MinHash::LocusList::Locus, ::capnp::Kind::STRUCT>::Builder MinHash::LocusList::Builder::initLoci(unsigned int size) { | |
1272 return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::MinHash::LocusList::Locus, ::capnp::Kind::STRUCT>>::init(_builder.getPointerField( | |
1273 ::capnp::bounded<0>() * ::capnp::POINTERS), size); | |
1274 } | |
1275 inline void MinHash::LocusList::Builder::adoptLoci( | |
1276 ::capnp::Orphan< ::capnp::List< ::capnp::MinHash::LocusList::Locus, ::capnp::Kind::STRUCT>>&& value) { | |
1277 ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::MinHash::LocusList::Locus, ::capnp::Kind::STRUCT>>::adopt(_builder.getPointerField( | |
1278 ::capnp::bounded<0>() * ::capnp::POINTERS), kj::mv(value)); | |
1279 } | |
1280 inline ::capnp::Orphan< ::capnp::List< ::capnp::MinHash::LocusList::Locus, ::capnp::Kind::STRUCT>> MinHash::LocusList::Builder::disownLoci() { | |
1281 return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::MinHash::LocusList::Locus, ::capnp::Kind::STRUCT>>::disown(_builder.getPointerField( | |
1282 ::capnp::bounded<0>() * ::capnp::POINTERS)); | |
1283 } | |
1284 | |
1285 inline ::uint32_t MinHash::LocusList::Locus::Reader::getSequence() const { | |
1286 return _reader.getDataField< ::uint32_t>( | |
1287 ::capnp::bounded<0>() * ::capnp::ELEMENTS); | |
1288 } | |
1289 | |
1290 inline ::uint32_t MinHash::LocusList::Locus::Builder::getSequence() { | |
1291 return _builder.getDataField< ::uint32_t>( | |
1292 ::capnp::bounded<0>() * ::capnp::ELEMENTS); | |
1293 } | |
1294 inline void MinHash::LocusList::Locus::Builder::setSequence( ::uint32_t value) { | |
1295 _builder.setDataField< ::uint32_t>( | |
1296 ::capnp::bounded<0>() * ::capnp::ELEMENTS, value); | |
1297 } | |
1298 | |
1299 inline ::uint32_t MinHash::LocusList::Locus::Reader::getPosition() const { | |
1300 return _reader.getDataField< ::uint32_t>( | |
1301 ::capnp::bounded<1>() * ::capnp::ELEMENTS); | |
1302 } | |
1303 | |
1304 inline ::uint32_t MinHash::LocusList::Locus::Builder::getPosition() { | |
1305 return _builder.getDataField< ::uint32_t>( | |
1306 ::capnp::bounded<1>() * ::capnp::ELEMENTS); | |
1307 } | |
1308 inline void MinHash::LocusList::Locus::Builder::setPosition( ::uint32_t value) { | |
1309 _builder.setDataField< ::uint32_t>( | |
1310 ::capnp::bounded<1>() * ::capnp::ELEMENTS, value); | |
1311 } | |
1312 | |
1313 inline ::uint32_t MinHash::LocusList::Locus::Reader::getHash32() const { | |
1314 return _reader.getDataField< ::uint32_t>( | |
1315 ::capnp::bounded<2>() * ::capnp::ELEMENTS); | |
1316 } | |
1317 | |
1318 inline ::uint32_t MinHash::LocusList::Locus::Builder::getHash32() { | |
1319 return _builder.getDataField< ::uint32_t>( | |
1320 ::capnp::bounded<2>() * ::capnp::ELEMENTS); | |
1321 } | |
1322 inline void MinHash::LocusList::Locus::Builder::setHash32( ::uint32_t value) { | |
1323 _builder.setDataField< ::uint32_t>( | |
1324 ::capnp::bounded<2>() * ::capnp::ELEMENTS, value); | |
1325 } | |
1326 | |
1327 inline ::uint64_t MinHash::LocusList::Locus::Reader::getHash64() const { | |
1328 return _reader.getDataField< ::uint64_t>( | |
1329 ::capnp::bounded<2>() * ::capnp::ELEMENTS); | |
1330 } | |
1331 | |
1332 inline ::uint64_t MinHash::LocusList::Locus::Builder::getHash64() { | |
1333 return _builder.getDataField< ::uint64_t>( | |
1334 ::capnp::bounded<2>() * ::capnp::ELEMENTS); | |
1335 } | |
1336 inline void MinHash::LocusList::Locus::Builder::setHash64( ::uint64_t value) { | |
1337 _builder.setDataField< ::uint64_t>( | |
1338 ::capnp::bounded<2>() * ::capnp::ELEMENTS, value); | |
1339 } | |
1340 | |
1341 } // namespace | |
1342 | |
1343 CAPNP_END_HEADER | |
1344 |