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

Method build

src/Factory/Module/Encoder/BCH/Encoder_BCH.cpp:60–74  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

58
59template<typename B>
60module::Encoder_BCH<B>*
61Encoder_BCH ::build(const tools::BCH_polynomial_generator<B>& GF) const
62{
63 if (this->type == "BCH")
64 {
65 if (this->simd_strategy == "INTER")
66 return new module::Encoder_BCH_inter<B>(this->K, this->N_cw, GF);
67 else if (this->simd_strategy == "INTRA")
68 throw spu::tools::cannot_allocate(__FILE__, __LINE__, __func__);
69 else
70 return new module::Encoder_BCH<B>(this->K, this->N_cw, GF);
71 }
72
73 throw spu::tools::cannot_allocate(__FILE__, __LINE__, __func__);
74}
75
76// ==================================================================================== explicit template instantiation
77#include "Tools/types.h"

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected