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