My Project
Loading...
Searching...
No Matches
Data Structures | Public Types | Public Member Functions | Private Member Functions | Private Attributes
CCacheHash< CExponent > Class Template Reference

#include <ncSACache.h>

Data Structures

struct  CCacheItem
 
union  CCacheItem.a
 
union  CCacheItem.b
 

Public Types

enum  EHistoryType { MULT_LOOKUP = 0 , MULT_STORE = 1 }
 

Public Member Functions

 CCacheHash (ring r)
 
ring GetBasering () const
 
int NVars () const
 
virtual ~CCacheHash ()
 
int LookupEE (CExponent a, CExponent b, CCacheItem *&pItems)
 
bool StoreEE (CExponent a, CExponent b, poly pProduct)
 
virtual void History (const EHistoryType, const CExponent, const CExponent, const poly=NULL)
 

Private Member Functions

 CCacheHash (const CCacheHash &)
 
CCacheHashoperator= (const CCacheHash &)
 

Private Attributes

ring m_basering
 
int m_NVars
 

Detailed Description

template<typename CExponent>
class CCacheHash< CExponent >

Definition at line 16 of file ncSACache.h.


Data Structure Documentation

◆ CCacheHash::CCacheItem

struct CCacheHash::CCacheItem
template<typename CExponent>
struct CCacheHash< CExponent >::CCacheItem

Definition at line 36 of file ncSACache.h.

Data Fields
union CCacheItem.a a
union CCacheItem.b b
int iPairType
long lHits
poly pProduct

◆ CCacheHash::CCacheItem.a

union CCacheHash::CCacheItem.a
template<typename CExponent>
union CCacheHash< CExponent >::CCacheItem.a

Definition at line 38 of file ncSACache.h.

Data Fields
CExponent aExponent
poly aMonom

◆ CCacheHash::CCacheItem.b

union CCacheHash::CCacheItem.b
template<typename CExponent>
union CCacheHash< CExponent >::CCacheItem.b

Definition at line 43 of file ncSACache.h.

Data Fields
CExponent bExponent
poly bMonom

Member Enumeration Documentation

◆ EHistoryType

template<typename CExponent >
enum CCacheHash::EHistoryType
Enumerator
MULT_LOOKUP 
MULT_STORE 

Definition at line 31 of file ncSACache.h.

31 {
32 MULT_LOOKUP = 0,
33 MULT_STORE = 1
34 };
@ MULT_STORE
Definition: ncSACache.h:33
@ MULT_LOOKUP
Definition: ncSACache.h:32

Constructor & Destructor Documentation

◆ CCacheHash() [1/2]

template<typename CExponent >
CCacheHash< CExponent >::CCacheHash ( ring  r)
inline

Definition at line 23 of file ncSACache.h.

23: m_basering(r), m_NVars(r->N){};
ring m_basering
Definition: ncSACache.h:19
int m_NVars
Definition: ncSACache.h:20

◆ ~CCacheHash()

template<typename CExponent >
virtual CCacheHash< CExponent >::~CCacheHash ( )
inlinevirtual

Definition at line 28 of file ncSACache.h.

28{};

◆ CCacheHash() [2/2]

template<typename CExponent >
CCacheHash< CExponent >::CCacheHash ( const CCacheHash< CExponent > &  )
private

Member Function Documentation

◆ GetBasering()

template<typename CExponent >
ring CCacheHash< CExponent >::GetBasering ( ) const
inline

Definition at line 25 of file ncSACache.h.

25{ return m_basering; };

◆ History()

template<typename CExponent >
virtual void CCacheHash< CExponent >::History ( const  EHistoryType,
const  CExponent,
const  CExponent,
const  poly = NULL 
)
inlinevirtual

Definition at line 87 of file ncSACache.h.

88 {
89 PrintS("CCacheHash::History(a, b, [p])!\n");
90 }
void PrintS(const char *s)
Definition: reporter.cc:284

◆ LookupEE()

template<typename CExponent >
int CCacheHash< CExponent >::LookupEE ( CExponent  a,
CExponent  b,
CCacheItem *&  pItems 
)
inline

Definition at line 56 of file ncSACache.h.

57 {
58/*
59 PrintS("//////////////////////////////////////////////////////////////////////////////////////////////");
60 PrintLn();
61 PrintS("CCacheHash::LookupEE(a, b, *results)!");
62 PrintLn();
63*/
65
66 pItems = NULL;
67 return -1;
68 }
CanonicalForm b
Definition: cfModGcd.cc:4103
virtual void History(const EHistoryType, const CExponent, const CExponent, const poly=NULL)
Definition: ncSACache.h:87
#define NULL
Definition: omList.c:12

◆ NVars()

template<typename CExponent >
int CCacheHash< CExponent >::NVars ( ) const
inline

Definition at line 26 of file ncSACache.h.

26{ return m_NVars; }

◆ operator=()

template<typename CExponent >
CCacheHash & CCacheHash< CExponent >::operator= ( const CCacheHash< CExponent > &  )
private

◆ StoreEE()

template<typename CExponent >
bool CCacheHash< CExponent >::StoreEE ( CExponent  a,
CExponent  b,
poly  pProduct 
)
inline

Definition at line 70 of file ncSACache.h.

71 {
72/*
73 PrintS("CCacheHash::StoreEE(a, b, Product)!");
74 PrintLn();
75*/
76
77 History(MULT_STORE, a, b, pProduct);
78
79/*
80 PrintS("\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\");
81 PrintLn();
82*/
83
84 return false; // the pair was not stored!
85 };

Field Documentation

◆ m_basering

template<typename CExponent >
ring CCacheHash< CExponent >::m_basering
private

Definition at line 19 of file ncSACache.h.

◆ m_NVars

template<typename CExponent >
int CCacheHash< CExponent >::m_NVars
private

Definition at line 20 of file ncSACache.h.


The documentation for this class was generated from the following file: