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

Method build

src/Factory/Module/Decoder/NO/Decoder_NO.cpp:58–71  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

56
57template<typename B, typename Q>
58module::Decoder_SIHO<B, Q>*
59Decoder_NO ::build(module::Encoder<B>* encoder) const
60{
61 try
62 {
63 return Decoder::build<B, Q>(encoder);
64 }
65 catch (spu::tools::cannot_allocate const&)
66 {
67 if (this->type == "NONE" && this->implem == "HARD_DECISION") return new module::Decoder_NO<B, Q>(this->K);
68 }
69
70 throw spu::tools::cannot_allocate(__FILE__, __LINE__, __func__);
71}
72
73// ==================================================================================== explicit template instantiation
74#include "Tools/types.h"

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected