spielwiese
Last change
on this file since 2f573cc was
2f573cc,
checked in by Martin Lee <martinlee84@…>, 13 years ago
|
new system function "factoras" to factorize over multiple extensions
git-svn-id: file:///usr/local/Singular/svn/trunk@13456 2c84dea3-7e68-4137-9b89-c4e89433aadc
|
-
Property mode set to
100644
|
File size:
938 bytes
|
Line | |
---|
1 | //////////////////////////////////////////////////////////// |
---|
2 | // emacs edit mode for this file is -*- C++ -*- |
---|
3 | //////////////////////////////////////////////////////////// |
---|
4 | // $Id$ |
---|
5 | //////////////////////////////////////////////////////////// |
---|
6 | |
---|
7 | #ifndef INCL_NEW_ALGFACTOR_H |
---|
8 | #define INCL_NEW_ALGFACTOR_H |
---|
9 | |
---|
10 | #include <factory.h> |
---|
11 | #include <tmpl_inst.h> // for typedef's |
---|
12 | |
---|
13 | // missing class: IntGenerator: |
---|
14 | class IntGenerator : public CFGenerator |
---|
15 | { |
---|
16 | private: |
---|
17 | int current; |
---|
18 | public: |
---|
19 | IntGenerator() : current(0) {} |
---|
20 | ~IntGenerator() {} |
---|
21 | bool hasItems() const; |
---|
22 | void reset() { current = 0; } |
---|
23 | CanonicalForm item() const; |
---|
24 | void next(); |
---|
25 | void operator++ () { next(); } |
---|
26 | void operator++ ( int ) { next(); } |
---|
27 | }; |
---|
28 | |
---|
29 | CFFList newfactoras( const CanonicalForm & f, const CFList & as, int &success); |
---|
30 | /*BEGINPUBLIC*/ |
---|
31 | CFFList newcfactor(const CanonicalForm & f, const CFList & as, int & success ); |
---|
32 | /*ENDPUBLIC*/ |
---|
33 | |
---|
34 | #endif /* INCL_ALGFACTOR_H */ |
---|
Note: See
TracBrowser
for help on using the repository browser.