Return the complementary adjacency. * If the assembly is in colour space, this is a no-op. */
| 96 | * If the assembly is in colour space, this is a no-op. |
| 97 | */ |
| 98 | SeqExt complement() const |
| 99 | { |
| 100 | static const uint8_t complements[16] = { |
| 101 | 0x0, 0x8, 0x4, 0xc, 0x2, 0xa, 0x6, 0xe, |
| 102 | 0x1, 0x9, 0x5, 0xd, 0x3, 0xb, 0x7, 0xf |
| 103 | }; |
| 104 | assert(m_record < 1 << NUM); |
| 105 | return opt::colourSpace ? *this : mask(complements[m_record]); |
| 106 | } |
| 107 | |
| 108 | friend std::ostream& operator <<(std::ostream& out, |
| 109 | const SeqExt& o) |
no outgoing calls