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

Method build

src/Factory/Module/Encoder/Encoder.cpp:84–92  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

82
83template<typename B>
84module::Encoder<B>*
85Encoder ::build() const
86{
87 if (this->type == "AZCW") return new module::Encoder_AZCW<B>(this->K, this->N_cw);
88 if (this->type == "COSET") return new module::Encoder_coset<B>(this->K, this->N_cw, this->seed);
89 if (this->type == "USER") return new module::Encoder_user<B>(this->K, this->N_cw, this->path, this->start_idx);
90
91 throw spu::tools::cannot_allocate(__FILE__, __LINE__, __func__);
92}
93
94// ==================================================================================== explicit template instantiation
95#include "Tools/types.h"

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected