source: git/factory/cf_factory.h @ 69fdf90

spielwiese
Last change on this file since 69fdf90 was a52291, checked in by Martin Lee <martinlee84@…>, 12 years ago
replacing MP_INT by mpz_t Conflicts: factory/cf_factory.h
  • Property mode set to 100644
File size: 1.2 KB
Line 
1/* emacs edit mode for this file is -*- C++ -*- */
2/* $Id$ */
3
4#ifndef INCL_CF_FACTORY_H
5#define INCL_CF_FACTORY_H
6
7// #include "config.h"
8
9#include "cf_defs.h"
10#include "variable.h"
11
12#include <factory/cf_gmp.h>
13
14class InternalCF;
15class CanonicalForm;
16
17class CFFactory
18{
19private:
20    static int currenttype;
21public:
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 ( const char * str, int base );
28    static InternalCF * basic ( int type, const char * const str );
29    static InternalCF * basic ( int type, int value, bool nonimm );
30    static InternalCF * basic ( const mpz_ptr num );
31    static InternalCF * rational ( int num, int den );
32    static InternalCF * rational ( const mpz_ptr num, const mpz_ptr 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
37mpz_ptr getmpi ( InternalCF * value, bool symmetric = true );
38
39#endif /* ! INCL_CF_FACTORY_H */
Note: See TracBrowser for help on using the repository browser.