spielwiese
Last change
on this file since 16105c was
16105c,
checked in by Hans Schönemann <hannes@…>, 22 years ago
|
*hannes: syntax
git-svn-id: file:///usr/local/Singular/svn/trunk@5672 2c84dea3-7e68-4137-9b89-c4e89433aadc
|
-
Property mode set to
100644
|
File size:
1.2 KB
|
Line | |
---|
1 | /* emacs edit mode for this file is -*- C++ -*- */ |
---|
2 | /* $Id: cf_factory.h,v 1.3 2001-11-05 17:07:12 Singular Exp $ */ |
---|
3 | |
---|
4 | #ifndef INCL_CF_FACTORY_H |
---|
5 | #define INCL_CF_FACTORY_H |
---|
6 | |
---|
7 | #include <config.h> |
---|
8 | |
---|
9 | #include "cf_gmp.h" |
---|
10 | |
---|
11 | #include "cf_defs.h" |
---|
12 | #include "variable.h" |
---|
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 ); |
---|
27 | static InternalCF * basic ( int type, const char * const str ); |
---|
28 | static InternalCF * basic ( int type, int value, bool nonimm ); |
---|
29 | static InternalCF * basic ( const MP_INT & num ); |
---|
30 | static InternalCF * rational ( int num, int den ); |
---|
31 | static InternalCF * rational ( const MP_INT & num, const MP_INT & den, bool normalize ); |
---|
32 | static InternalCF * poly ( const Variable & v, int exp, const CanonicalForm & c ); |
---|
33 | static InternalCF * poly ( const Variable & v, int exp = 1 ); |
---|
34 | }; |
---|
35 | |
---|
36 | MP_INT getmpi ( InternalCF * value, bool symmetric = true ); |
---|
37 | |
---|
38 | #endif /* ! INCL_CF_FACTORY_H */ |
---|
Note: See
TracBrowser
for help on using the repository browser.