Changeset 9d0c2b in git for kernel/summator.h


Ignore:
Timestamp:
Jul 8, 2008, 10:18:27 AM (15 years ago)
Author:
Hans Schönemann <hannes@…>
Branches:
(u'spielwiese', '8e0ad00ce244dfd0756200662572aef8402f13d5')
Children:
77987005e6c432b32a83558af620b8a21ecaa8cc
Parents:
9d249b2bd6e53779def56a0139a8157d70ec75c1
Message:
*hannes: syntax


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

Legend:

Unmodified
Added
Removed
  • kernel/summator.h

    r9d249b r9d0c2b  
    44*  Computer Algebra System SINGULAR     *
    55****************************************/
    6 /* $Id: summator.h,v 1.1 2008-07-04 14:19:38 motsak Exp $ */
     6/* $Id: summator.h,v 1.2 2008-07-08 08:18:27 Singular Exp $ */
    77
    88// #include <summator.h> // for CPolynomialSummator class
     
    1515// CPolynomialSummator: unifies bucket and polynomial summation as the
    1616// later is brocken in buckets :(
    17 
     17#ifdef HAVE_PLURAL
    1818class CPolynomialSummator
    1919{
     
    2121    ring m_basering;
    2222    bool m_bUsePolynomial;
    23     union {
     23    union
     24    {
    2425      sBucket_pt m_bucket;
    2526      poly       m_poly;
    26     } m_temp;   
     27    } m_temp;
    2728  public:
    2829    CPolynomialSummator(ring rBaseRing, bool bUsePolynomial = false);
     
    3334    void AddAndDelete(poly pSummand, int iLength);
    3435    void AddAndDelete(poly pSummand);
    35    
     36
    3637    inline void operator +=(poly pSummand){ AddAndDelete(pSummand); }
    3738
     
    4041    void Add(poly pSummand, int iLength);
    4142    void Add(poly pSummand);
    42    
     43
    4344    // get the final result and clear (set to zero) the summator
    4445    poly AddUpAndClear();
     
    4647
    4748    inline operator poly() { return AddUpAndClear(); }
    48    
     49
    4950  private: // no copies of this object at the moment!!!
    5051    CPolynomialSummator(const CPolynomialSummator& m);               // Copy constructor
    51     CPolynomialSummator& operator= (const CPolynomialSummator& m);   // Assignment operator   
     52    CPolynomialSummator& operator= (const CPolynomialSummator& m);   // Assignment operator
    5253};
    5354
     55#endif
    5456#endif // ifndef  SUMMATOR_H
    5557
    56 
    57 
    58 
    59 
    60 
Note: See TracChangeset for help on using the changeset viewer.