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

Method build

src/Factory/Module/Encoder/Polar/Encoder_polar.cpp:52–61  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

50
51template<typename B>
52module::Encoder_polar<B>*
53Encoder_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"

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected