-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathAlignment_Record.hpp
64 lines (38 loc) · 1015 Bytes
/
Alignment_Record.hpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
#ifndef LIBRADICL_ALIGNMENT_RECORD_HPP
#define LIBRADICL_ALIGNMENT_RECORD_HPP
#include "Type.hpp"
#include "Tags.hpp"
#include "Byte_Array.hpp"
#include <cstdint>
namespace RAD
{
class Aln_Record
{
private:
// Type::u32 ref_id; // The id of the reference where this alignment occurs.
// Type::u8 aln_type; // Encodes the type of alignment to follow. Valid alignment types are: 0 — read fw, 1 — read rc.
Tag_List tag; // Array of specified alignment-level tags for this alignment.
public:
void clear();
template <typename T_tag_>
void add_tag(const T_tag_& val);
void dump(Byte_Array& byte_arr) const;
};
inline void Aln_Record::clear()
{
tag.clear();
}
template <typename T_tag_>
inline void Aln_Record::add_tag(const T_tag_& val)
{
static_assert(is_RAD_type<T_tag_>());
tag.add(val);
}
inline void Aln_Record::dump(Byte_Array& byte_arr) const
{
// byte_arr.add(ref_id);
// byte_arr.add(aln_type);
byte_arr.add(tag);
}
}
#endif