source: git/factory/libfac/charset/alg_factor.h @ d92d71

spielwiese
Last change on this file since d92d71 was dccceb, checked in by Oleksandr Motsak <motsak@…>, 12 years ago
moved libfac under factory/ CHG: moved libfac/ under factory/ Note: starting to merge libfac into factory (as a private library)
  • 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:
14class IntGenerator : public CFGenerator
15{
16private:
17    int current;
18public:
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
29CFFList newfactoras( const CanonicalForm & f, const CFList & as, int &success);
30/*BEGINPUBLIC*/
31CFFList 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.