Changeset f78891 in git for kernel/ncSACache.h
- Timestamp:
- Jul 18, 2008, 7:12:37 PM (16 years ago)
- Branches:
- (u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
- Children:
- 3df50eae2081325a44f9cc7de42863f9acab9175
- Parents:
- 51a2f3f181cd79e58e74a3799b06e5fbc5b8289a
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/ncSACache.h
r51a2f3 rf78891 4 4 * Computer Algebra System SINGULAR * 5 5 *****************************************/ 6 /* $Id: ncSACache.h,v 1. 2 2008-07-15 16:27:58motsak Exp $ */6 /* $Id: ncSACache.h,v 1.3 2008-07-18 17:12:37 motsak Exp $ */ 7 7 8 8 // #include <ncSACache.h> // for CCacheHash etc classes … … 29 29 30 30 virtual ~CCacheHash(){}; 31 31 32 32 33 enum EHistoryType { 33 MULT_LOOKUP 34 MULT_LOOKUP = 0, 35 MULT_STORE = 1 34 36 }; 35 37 … … 56 58 int LookupEE(CExponent a, CExponent b, CCacheItem*& pItems) 57 59 { 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 59 67 pItems = NULL; 60 68 return -1; … … 63 71 bool StoreEE(CExponent a, CExponent b, poly pProduct) 64 72 { 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 66 81 return false; // the pair was not stored! 67 82 }; 68 83 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) 70 85 { 71 Print("MultHistory!\n"); 86 Print("CCacheHash::History(a, b, [p])!"); 87 PrintLn(); 72 88 } 73 89 … … 89 105 90 106 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); 92 108 }; 93 109 … … 102 118 103 119 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); 105 121 }; 106 122
Note: See TracChangeset
for help on using the changeset viewer.