source: git/libfac/charset/alg_factor.h @ adfb22

spielwiese
Last change on this file since adfb22 was ec958b, checked in by Hans Schönemann <hannes@…>, 15 years ago
*hannes: newfactoras git-svn-id: file:///usr/local/Singular/svn/trunk@11185 2c84dea3-7e68-4137-9b89-c4e89433aadc
  • Property mode set to 100644
File size: 990 bytes
Line 
1////////////////////////////////////////////////////////////
2// emacs edit mode for this file is -*- C++ -*-
3////////////////////////////////////////////////////////////
4// $Id: alg_factor.h,v 1.4 2008-11-06 14:05:51 Singular Exp $
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);
30CFFList newcfactor(const CanonicalForm & f, const CFList & as, int success );
31/*BEGINPUBLIC*/
32/*ENDPUBLIC*/
33
34#endif /* INCL_ALGFACTOR_H */
Note: See TracBrowser for help on using the repository browser.