MCPcopy Create free account
hub / github.com/aff3ct/aff3ct / Extractor_RSC

Method Extractor_RSC

src/Module/Extractor/RSC/Extractor_RSC.cpp:10–26  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

8
9template<typename B, typename Q>
10Extractor_RSC<B, Q>::Extractor_RSC(const int K, const int N, const int tail_length, const bool buffered_encoding)
11 : Extractor<B, Q>(K, N, tail_length)
12 , buffered_encoding(buffered_encoding)
13 , info_bits_pos(K, 0)
14{
15 const std::string name = "Extractor_RSC";
16 this->set_name(name);
17 for (auto& t : this->tasks)
18 t->set_replicability(true);
19
20 if (buffered_encoding)
21 for (auto i = 0; i < K; i++)
22 info_bits_pos[i] = i;
23 else
24 for (auto i = 0; i < K; i++)
25 info_bits_pos[i] = 2 * i;
26}
27
28template<typename B, typename Q>
29Extractor_RSC<B, Q>*

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected