| 82 | |
| 83 | template<typename B> |
| 84 | module::Encoder<B>* |
| 85 | Encoder ::build() const |
| 86 | { |
| 87 | if (this->type == "AZCW") return new module::Encoder_AZCW<B>(this->K, this->N_cw); |
| 88 | if (this->type == "COSET") return new module::Encoder_coset<B>(this->K, this->N_cw, this->seed); |
| 89 | if (this->type == "USER") return new module::Encoder_user<B>(this->K, this->N_cw, this->path, this->start_idx); |
| 90 | |
| 91 | throw spu::tools::cannot_allocate(__FILE__, __LINE__, __func__); |
| 92 | } |
| 93 | |
| 94 | // ==================================================================================== explicit template instantiation |
| 95 | #include "Tools/types.h" |
nothing calls this directly
no outgoing calls
no test coverage detected