source: git/factory/facAlgFunc.h @ 1f1b02

fieker-DuValspielwiese
Last change on this file since 1f1b02 was 1f1b02, checked in by Martin Lee <martinlee84@…>, 10 years ago
mv: factory/libfac/charset/alg_factor.* -> factory/facAlgFunc.*
  • Property mode set to 100644
File size: 930 bytes
Line 
1////////////////////////////////////////////////////////////
2// emacs edit mode for this file is -*- C++ -*-
3////////////////////////////////////////////////////////////
4////////////////////////////////////////////////////////////
5
6#ifndef INCL_NEW_ALGFACTOR_H
7#define INCL_NEW_ALGFACTOR_H
8
9#include <factory.h>
10#include <tmpl_inst.h>  // for typedef's
11
12// missing class: IntGenerator:
13class IntGenerator : public CFGenerator
14{
15private:
16    int current;
17public:
18    IntGenerator() : current(0) {}
19    ~IntGenerator() {}
20    bool hasItems() const;
21    void reset() { current = 0; }
22    CanonicalForm item() const;
23    void next();
24    void operator++ () { next(); }
25    void operator++ ( int ) { next(); }
26};
27
28CFFList newfactoras( const CanonicalForm & f, const CFList & as, int &success);
29/*BEGINPUBLIC*/
30CFFList newcfactor(const CanonicalForm & f, const CFList & as, int & success );
31/*ENDPUBLIC*/
32
33#endif /* INCL_ALGFACTOR_H */
Note: See TracBrowser for help on using the repository browser.