Changeset cd7c3e1 in git for kernel/lpolynomial.cc


Ignore:
Timestamp:
Dec 26, 2008, 2:52:15 PM (15 years ago)
Author:
Christian Eder
Branches:
(u'spielwiese', '8e0ad00ce244dfd0756200662572aef8402f13d5')
Children:
db0c26499ac93c779f02182a98792ec615793f61
Parents:
d72b11bc8b23f633cdb4f322bbbbab31c23597cb
Message:
fitting to lists.h


git-svn-id: file:///usr/local/Singular/svn/trunk@11271 2c84dea3-7e68-4137-9b89-c4e89433aadc
File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/lpolynomial.cc

    rd72b11 rcd7c3e1  
    22*  Computer Algebra System SINGULAR     *
    33****************************************/
    4 /* $Id: lpolynomial.cc,v 1.2 2008-11-27 17:18:45 ederc Exp $ */
     4/* $Id: lpolynomial.cc,v 1.3 2008-12-26 13:51:50 ederc Exp $ */
    55/*
    66* ABSTRACT: lpolynomial definition
     
    2424#include "f5gb.h"
    2525#include "lpolynomial.h"
    26 #include "lplist.h"
     26#include "lists.h"
    2727/*
    2828================================================================
     
    3030================================================================
    3131*/
    32 void LPoly::setPoly(poly p)
     32void LPoly::setPoly(poly* p)
    3333{
    34     polynomial = p;
     34    polynomial = *p;
    3535}
    3636
    37 void LPoly::setTerm(poly t) {
    38     term = t;
     37void LPoly::setTerm(poly* t) {
     38    term = *t;
    3939}
    4040
    41 void LPoly::setIndex(long i) {
    42     index = i;
     41void LPoly::setIndex(long* i) {
     42    index = *i;
    4343}
    4444
     
    4848}
    4949
    50 void LPoly::setNext(LPoly* l) {
    51     next = l;
    52 }
    53 
    54 poly LPoly::getPoly() {
     50poly LPoly::getPoly() const {
    5551    return polynomial;
    5652}
    5753
    58 poly LPoly::getTerm() {
     54poly LPoly::getTerm() const {
    5955    return term;
    6056}
    6157
    62 long LPoly::getIndex() {
     58long LPoly::getIndex() const {
    6359    return index;
    6460}
    6561
    66 bool LPoly::getDel() {
     62bool LPoly::getDel() const {
    6763    return del;
    6864}
    6965
    70 LPoly* LPoly::getNext() {
    71     return next;
     66void LPoly::set(poly* t, long* i, poly* p) {
     67    this->setTerm(t);
     68    this->setIndex(i);
     69    this->setPoly(p);
    7270}
    7371
     
    7775=====================================================
    7876*/
    79 int LPoly::compare(const LPoly& lp) {
     77int LPoly::compare(const LPoly& lp) const {
    8078    if(index > lp.index) {
    8179        return 1;
     
    8785}
    8886
    89 void LPoly::get() {
    90     Print("Label: ");
    91     pWrite(getTerm());
    92     Print("  %d\n",getIndex());
     87LPoly* LPoly::get() {
     88    return this;
    9389}
    9490#endif
Note: See TracChangeset for help on using the changeset viewer.