My Project
Loading...
Searching...
No Matches
Static Public Member Functions
CFGenFactory Class Reference

#include <cf_generator.h>

Static Public Member Functions

static CFGeneratorgenerate ()
 

Detailed Description

Definition at line 117 of file cf_generator.h.

Member Function Documentation

◆ generate()

CFGenerator * CFGenFactory::generate ( )
static

Definition at line 221 of file cf_generator.cc.

222{
223 if (getCharacteristic() == 0)
224 return new IntGenerator();
225 else if ( getGFDegree() > 1 )
226 return new GFGenerator();
227 else
228 return new FFGenerator();
229}
int getGFDegree()
Definition: cf_char.cc:75
int FACTORY_PUBLIC getCharacteristic()
Definition: cf_char.cc:70
generate all elements in F_p starting from 0
Definition: cf_generator.h:56
generate all elements in GF starting from 0
Definition: cf_generator.h:75
generate integers starting from 0
Definition: cf_generator.h:37

The documentation for this class was generated from the following files: