| 67 | |
| 68 | template<typename B> |
| 69 | module::Encoder_polar_MK<B>* |
| 70 | Encoder_polar_MK ::build(const tools::Polar_code& code, const std::vector<bool>& frozen_bits) const |
| 71 | { |
| 72 | if (this->type == "POLAR_MK") |
| 73 | { |
| 74 | if (this->systematic) |
| 75 | return new module::Encoder_polar_MK_sys<B>(this->K, this->N_cw, code, frozen_bits); |
| 76 | else |
| 77 | return new module::Encoder_polar_MK<B>(this->K, this->N_cw, code, frozen_bits); |
| 78 | } |
| 79 | |
| 80 | throw spu::tools::cannot_allocate(__FILE__, __LINE__, __func__); |
| 81 | } |
| 82 | |
| 83 | // ==================================================================================== explicit template instantiation |
| 84 | #include "Tools/types.h" |
nothing calls this directly
no outgoing calls
no test coverage detected