source: git/factory/libfac/charset/alg_factor.h @ 6ce030f

spielwiese
Last change on this file since 6ce030f was 6ce030f, checked in by Oleksandr Motsak <motsak@…>, 12 years ago
removal of the $Id$ svn tag from everywhere NOTE: the git SHA1 may be used instead (only on special places) NOTE: the libraries Singular/LIB/*.lib still contain the marker due to our current use of svn
  • 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.