pflib v3.15.1-5-ge6391b0
Pretty Fine HGCROC Interaction Library
Loading...
Searching...
No Matches
ECONTAlignmentWord.h
1#pragma once
2#ifndef PFLIB_PACKING_ECONTALIGNMENTWORD_H
3#define PFLIB_PACKING_ECONTALIGNMENTWORD_H
4
5#include <cstdint>
6#include <ostream>
7
8namespace pflib::packing {
9
21 uint32_t word_;
22 uint32_t bx0() const;
23 uint32_t bx1() const;
24 uint32_t patt0() const;
25 uint32_t patt1() const;
26 void from(uint32_t bx, uint32_t patt);
28 explicit ECONTAlignmentWord(uint32_t w);
33 bool match(uint32_t pattern) const;
34 friend std::ostream& operator<<(std::ostream& o,
35 const ECONTAlignmentWord& self);
36};
37
38} // namespace pflib::packing
39
40#endif
The ECON-T alignment outputs a fixed pattern consisting of two 16-bit words.
Definition ECONTAlignmentWord.h:20
bool match(uint32_t pattern) const
A valid match is where both BX stored in the two 16-bit words match and both 11b patterns match the p...
Definition ECONTAlignmentWord.cxx:23