| 50 | |
| 51 | template<typename B> |
| 52 | module::Encoder_polar<B>* |
| 53 | Encoder_polar ::build(const std::vector<bool>& frozen_bits) const |
| 54 | { |
| 55 | if (this->type == "POLAR" && !this->systematic) |
| 56 | return new module::Encoder_polar<B>(this->K, this->N_cw, frozen_bits); |
| 57 | if (this->type == "POLAR" && this->systematic) |
| 58 | return new module::Encoder_polar_sys<B>(this->K, this->N_cw, frozen_bits); |
| 59 | |
| 60 | throw spu::tools::cannot_allocate(__FILE__, __LINE__, __func__); |
| 61 | } |
| 62 | |
| 63 | // ==================================================================================== explicit template instantiation |
| 64 | #include "Tools/types.h" |
nothing calls this directly
no outgoing calls
no test coverage detected