Changeset f78891 in git for kernel/ncSACache.h


Ignore:
Timestamp:
Jul 18, 2008, 7:12:37 PM (16 years ago)
Author:
Motsak Oleksandr <motsak@…>
Branches:
(u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
Children:
3df50eae2081325a44f9cc7de42863f9acab9175
Parents:
51a2f3f181cd79e58e74a3799b06e5fbc5b8289a
Message:
*motsak: special mult. - comm. case done!


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

Legend:

Unmodified
Added
Removed
  • kernel/ncSACache.h

    r51a2f3 rf78891  
    44 *  Computer Algebra System SINGULAR     *
    55 *****************************************/
    6 /* $Id: ncSACache.h,v 1.2 2008-07-15 16:27:58 motsak Exp $ */
     6/* $Id: ncSACache.h,v 1.3 2008-07-18 17:12:37 motsak Exp $ */
    77
    88// #include <ncSACache.h> // for CCacheHash etc classes
     
    2929   
    3030    virtual ~CCacheHash(){};
     31
    3132   
    3233    enum EHistoryType {
    33       MULT_LOOKUP
     34      MULT_LOOKUP = 0,
     35      MULT_STORE  = 1
    3436    };
    3537
     
    5658    int LookupEE(CExponent a, CExponent b, CCacheItem*& pItems)
    5759    {
    58       History(a, b, MULT_LOOKUP);
     60      Print("//////////////////////////////////////////////////////////////////////////////////////////////");
     61      PrintLn();
     62      Print("CCacheHash::LookupEE(a, b, *results)!");
     63      PrintLn();
     64
     65      History(MULT_LOOKUP, a, b);
     66     
    5967      pItems = NULL;
    6068      return -1;
     
    6371    bool StoreEE(CExponent a, CExponent b, poly pProduct)
    6472    {
    65       Print("StoreEE!\n");
     73      Print("CCacheHash::StoreEE(a, b, Product)!");
     74      PrintLn();
     75
     76      History(MULT_STORE, a, b, pProduct);
     77
     78      Print("\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\");
     79      PrintLn();
     80
    6681      return false; // the pair was not stored!
    6782    };
    6883   
    69     virtual void History(const CExponent a, const CExponent b, const EHistoryType t)
     84    virtual void History(const EHistoryType t, const CExponent a, const CExponent b, const poly p = NULL)
    7085    {
    71       Print("MultHistory!\n");
     86      Print("CCacheHash::History(a, b, [p])!");
     87      PrintLn();
    7288    }
    7389
     
    89105
    90106  protected:
    91     virtual void History(CExponent a, CExponent b, const EHistoryType t);
     107    virtual void History(const EHistoryType t, const CExponent a, const CExponent b, const poly p = NULL);
    92108};
    93109
     
    102118
    103119  protected:
    104     virtual void History(const CExponent a, const CExponent b, const EHistoryType t);
     120    virtual void History(const EHistoryType t, const CExponent a, const CExponent b, const poly p = NULL);
    105121};
    106122
Note: See TracChangeset for help on using the changeset viewer.