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

Method build

src/Factory/Module/Encoder/Polar_MK/Encoder_polar_MK.cpp:69–81  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

67
68template<typename B>
69module::Encoder_polar_MK<B>*
70Encoder_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"

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected