Tomato
OxFactoryOfSignCalculators.h
Go to the documentation of this file.
1 
7 #ifndef Tomato_OXFACTORYOFSignCalculators_H
8 #define Tomato_OXFACTORYOFSignCalculators_H
9 
10 #include "CmakeConfigForTomato.h"
11 #include "tomatolib_export.h"
12 #include "OxSignCalculator.h"
13 
14 namespace Ox {
15 
16  template<typename TYPE>
17  class TomatoOptions;
18 
19 
20  static const char *signCalculatorsTypeNames[] = {
21  "NoSign",
22  "RealImag",
23  "MagPhase",
24  "None"
25  };
26 
27  enum signCalculatorsType_t {
28  NoSign = 0,
29  RealImag = 1,
30  MagPhase = 2,
31  None = 3,
32  lastSignCalculatorType = None
33  };
34 
35  static int signCalculatorsAvailability [] = {
36  1, // NoSign
37  1, // RealImag
38  1, // MagPhase
39  1, // None
40  };
41 
42  template<typename TYPE>
44  public:
45 
46  static SignCalculator<TYPE>* newByFactory(TomatoOptions<TYPE> *opts);
47 
48  static void disp(int sign_calc_method = -1);
49  };
50 
51 
52 } // namespace Ox
53 
54 #ifndef TOMATOLIB_COMPILED
56 #endif // TOMATOLIB_COMPILED
57 
58 #endif //Tomato_OXFACTORYOFSignCalculators_H
Definition: OxFactoryOfSignCalculators.h:43
Definition: OxFactoryOfCalculators.h:17
Definition: OxSignCalculator.h:21
Definition: OxCalculator.h:19