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

Method build

src/Factory/Module/Encoder/RSC/Encoder_RSC.cpp:104–113  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

102
103template<typename B>
104module::Encoder_RSC_sys<B>*
105Encoder_RSC ::build(std::ostream& stream) const
106{
107 if (this->type == "RSC_JSON")
108 return new module::Encoder_RSC_generic_json_sys<B>(this->K, this->N_cw, this->buffered, this->poly, stream);
109 if (this->type == "RSC")
110 return new module::Encoder_RSC_generic_sys<B>(this->K, this->N_cw, this->buffered, this->poly);
111
112 throw spu::tools::cannot_allocate(__FILE__, __LINE__, __func__);
113}
114
115// ==================================================================================== explicit template instantiation
116#include "Tools/types.h"

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected