source: git/libfac/charset/alg_factor.h @ 4a81ec

spielwiese
Last change on this file since 4a81ec was 4a81ec, checked in by Hans Schönemann <hannes@…>, 27 years ago
* hannes/michael: libfac-0.3.0 git-svn-id: file:///usr/local/Singular/svn/trunk@708 2c84dea3-7e68-4137-9b89-c4e89433aadc
  • Property mode set to 100644
File size: 1.0 KB
RevLine 
[0479e09]1/* Copyright 1996 Michael Messollen. All rights reserved. */
2////////////////////////////////////////////////////////////
3// emacs edit mode for this file is -*- C++ -*-
4////////////////////////////////////////////////////////////
[4a81ec]5// $Id: alg_factor.h,v 1.2 1997-09-12 07:19:37 Singular Exp $
[0479e09]6////////////////////////////////////////////////////////////
7
8#ifndef INCL_NEW_ALGFACTOR_H
9#define INCL_NEW_ALGFACTOR_H
10
11#include <factory.h>
12#include <tmpl_inst.h>  // for typedef's
13
14// missing class: IntGenerator:
15class IntGenerator : public CFGenerator
16{
17private:
18    int current;
19public:
20    IntGenerator() : current(0) {}
21    ~IntGenerator() {}
22    bool hasItems() const;
23    void reset() { current = 0; }
24    CanonicalForm item() const;
25    void next();
26    void operator++ () { next(); }
27    void operator++ ( int ) { next(); }
28};
29
30CFFList newfactoras( const CanonicalForm & f, const CFList & as, int success);
31CFFList newcfactor(const CanonicalForm & f, const CFList & as, int success );
32/*BEGINPUBLIC*/
33/*ENDPUBLIC*/
34
35#endif /* INCL_ALGFACTOR_H */
Note: See TracBrowser for help on using the repository browser.