spielwiese
Last change
on this file since 1c48503 was
e4fe2b,
checked in by Oleksandr Motsak <motsak@…>, 13 years ago
|
FIX: Fixed huge BUG in cf_gmp.h
CHG: starting to cleanup factory
|
-
Property mode set to
100644
|
File size:
1.2 KB
|
Rev | Line | |
---|
[493c477] | 1 | /* emacs edit mode for this file is -*- C++ -*- */ |
---|
[341696] | 2 | /* $Id$ */ |
---|
[2dd068] | 3 | |
---|
[493c477] | 4 | #ifndef INCL_CF_FACTORY_H |
---|
| 5 | #define INCL_CF_FACTORY_H |
---|
[2dd068] | 6 | |
---|
[e4fe2b] | 7 | // #include "config.h" |
---|
[ab4548f] | 8 | |
---|
[2dd068] | 9 | #include "cf_defs.h" |
---|
| 10 | #include "variable.h" |
---|
[e4fe2b] | 11 | |
---|
| 12 | #include <factory/cf_gmp.h> |
---|
[2dd068] | 13 | |
---|
| 14 | class InternalCF; |
---|
| 15 | class CanonicalForm; |
---|
| 16 | |
---|
| 17 | class CFFactory |
---|
| 18 | { |
---|
| 19 | private: |
---|
| 20 | static int currenttype; |
---|
| 21 | public: |
---|
| 22 | static int gettype () { return currenttype; } |
---|
| 23 | static void settype ( int type ); |
---|
| 24 | static InternalCF * basic ( int value ); |
---|
| 25 | static InternalCF * basic ( int type, int value ); |
---|
| 26 | static InternalCF * basic ( const char * str ); |
---|
[d07137] | 27 | static InternalCF * basic ( const char * str, int base ); |
---|
[16105c] | 28 | static InternalCF * basic ( int type, const char * const str ); |
---|
[2dd068] | 29 | static InternalCF * basic ( int type, int value, bool nonimm ); |
---|
| 30 | static InternalCF * basic ( const MP_INT & num ); |
---|
| 31 | static InternalCF * rational ( int num, int den ); |
---|
| 32 | static InternalCF * rational ( const MP_INT & num, const MP_INT & den, bool normalize ); |
---|
| 33 | static InternalCF * poly ( const Variable & v, int exp, const CanonicalForm & c ); |
---|
| 34 | static InternalCF * poly ( const Variable & v, int exp = 1 ); |
---|
| 35 | }; |
---|
| 36 | |
---|
[e4fe2b] | 37 | |
---|
[2dd068] | 38 | MP_INT getmpi ( InternalCF * value, bool symmetric = true ); |
---|
| 39 | |
---|
[493c477] | 40 | #endif /* ! INCL_CF_FACTORY_H */ |
---|
Note: See
TracBrowser
for help on using the repository browser.