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

Method build

src/Factory/Module/Decoder/RA/Decoder_RA.cpp:121–137  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

119
120template<typename B, typename Q>
121module::Decoder_SIHO<B, Q>*
122Decoder_RA ::build(const module::Interleaver<Q>& itl, module::Encoder<B>* encoder) const
123{
124 try
125 {
126 return Decoder::build<B, Q>(encoder);
127 }
128 catch (spu::tools::cannot_allocate const&)
129 {
130 if (this->type == "RA")
131 {
132 if (this->implem == "STD") return new module::Decoder_RA<B, Q>(this->K, this->N_cw, itl, this->n_ite);
133 }
134 }
135
136 throw spu::tools::cannot_allocate(__FILE__, __LINE__, __func__);
137}
138
139// ==================================================================================== explicit template instantiation
140#include "Tools/types.h"

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected