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

Method build

src/Factory/Module/Encoder/Polar_PAC/Encoder_polar_PAC.cpp:60–66  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

58
59template<typename B>
60module::Encoder_polar_PAC<B>*
61Encoder_polar_PAC ::build(const std::vector<bool>& frozen_bits) const
62{
63 if (this->type == "POLAR_PAC")
64 return new module::Encoder_polar_PAC<B>(this->K, this->N_cw, frozen_bits, this->conv);
65 throw spu::tools::cannot_allocate(__FILE__, __LINE__, __func__);
66}
67
68// ==================================================================================== explicit template instantiation
69#include "Tools/types.h"

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected