source: git/factory/libfac/charset/alg_factor.h @ 16055bd

fieker-DuValspielwiese
Last change on this file since 16055bd was 16055bd, checked in by Martin Lee <martinlee84@…>, 12 years ago
chg: move libfac into factory
  • 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.