source: git/factory/cf_factory.h @ 84250a6

spielwiese
Last change on this file since 84250a6 was ab4548f, checked in by Jens Schmidt <schmidt@…>, 27 years ago
#include <config.h> added git-svn-id: file:///usr/local/Singular/svn/trunk@133 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.1 1997-04-07 15:04:37 schmidt Exp $
3
4#ifndef INCL_CFFACTORY_H
5#define INCL_CFFACTORY_H
6
7/*
8$Log: not supported by cvs2svn $
9Revision 1.0  1996/05/17 10:59:38  stobbe
10Initial revision
11
12*/
13
14#include <config.h>
15
16#include "cf_gmp.h"
17
18#include "cf_defs.h"
19#include "variable.h"
20
21class InternalCF;
22class CanonicalForm;
23
24class CFFactory
25{
26private:
27    static int currenttype;
28public:
29    static int gettype () { return currenttype; }
30    static void settype ( int type );
31    static InternalCF * basic ( int value );
32    static InternalCF * basic ( int type, int value );
33    static InternalCF * basic ( const char * str );
34    static InternalCF * basic ( int type, const char * str );
35    static InternalCF * basic ( int type, int value, bool nonimm );
36    static InternalCF * basic ( const MP_INT & num );
37    static InternalCF * rational ( int num, int den );
38    static InternalCF * rational ( const MP_INT & num, const MP_INT & den, bool normalize );
39    static InternalCF * poly ( const Variable & v, int exp, const CanonicalForm & c );
40    static InternalCF * poly ( const Variable & v, int exp = 1 );
41};
42
43MP_INT getmpi ( InternalCF * value, bool symmetric = true );
44
45#endif
Note: See TracBrowser for help on using the repository browser.