source: git/kernel/lpolynomial.h @ 4e803e

spielwiese
Last change on this file since 4e803e was 4e803e, checked in by Christian Eder, 15 years ago
updated header inclusions due to lplist, new get() git-svn-id: file:///usr/local/Singular/svn/trunk@11210 2c84dea3-7e68-4137-9b89-c4e89433aadc
  • Property mode set to 100644
File size: 1.4 KB
Line 
1/****************************************
2*  Computer Algebra System SINGULAR     *
3****************************************/
4/* $Id: lpolynomial.h,v 1.2 2008-11-27 17:19:22 ederc Exp $ */
5/*
6* ABSTRACT: labeled polynomial interface
7*/
8#ifndef LPOLYNOMIAL_HEADER
9#define LPOLYNOMIAL_HEADER
10
11#ifdef HAVE_F5
12
13
14// class of a labeled polynomial
15class LPoly
16{
17        private:
18                poly    term; //term of signature
19                long    index; //index of signature
20                poly    polynomial; //standard polynomial data
21                bool    del; //for deletion in TopReduction Subalgorithm
22                LPoly   *next; //pointer on the next labeled polynomial in the list
23        public:
24                void    setPoly(poly p);
25                poly    getPoly();
26                void    setTerm(poly t);
27                poly    getTerm();
28                void    setIndex(long i);
29                long    getIndex();
30                void    setDel(bool b);
31                bool    getDel();
32                void    setNext(LPoly *l);
33                LPoly   *getNext();
34                int     compare(const LPoly& lp);
35                void    get();
36};
37
38
39// structure of the critical pairs, just the addresses of the corresponding generator labeled polynomials
40struct critpair
41{
42        LPoly       *cp1;   // first  component
43        LPoly       *cp2;   // second component
44        critpair    *next;  // next critical pair
45};
46
47
48#endif
49#endif
50
51
Note: See TracBrowser for help on using the repository browser.