Public Member Functions | Private Types | Private Attributes
SBucketWrapper Class Reference

Public Member Functions

 SBucketWrapper (const ring r, SBucketFactory &factory)
 
 ~SBucketWrapper ()
 
void Add (poly p, const int l)
 adds p to the internal bucket destroys p, l == length(p) More...
 
void Add (poly p)
 adds p to the internal bucket destroys p More...
 
poly ClearAdd ()
 

Private Types

typedef SBucketFactory::Bucket Bucket
 

Private Attributes

Bucket m_bucket
 
SBucketFactorym_factory
 

Detailed Description

Definition at line 81 of file syzextra.cc.

Member Typedef Documentation

◆ Bucket

Definition at line 83 of file syzextra.cc.

Constructor & Destructor Documentation

◆ SBucketWrapper()

SBucketWrapper::SBucketWrapper ( const ring  r,
SBucketFactory factory 
)
inline

Definition at line 90 of file syzextra.cc.

90  :
91  m_bucket( factory.getBucket(r) ),
92  m_factory( factory )
93  {}
SBucketFactory & m_factory
Definition: syzextra.cc:88
Bucket getBucket(const ring r, const bool remove=true)
Definition: syzextra.h:92
Bucket m_bucket
Definition: syzextra.cc:86

◆ ~SBucketWrapper()

SBucketWrapper::~SBucketWrapper ( )
inline

Definition at line 95 of file syzextra.cc.

96  {
98  }
SBucketFactory & m_factory
Definition: syzextra.cc:88
void putBucket(const Bucket &bt, const bool replace=false)
Definition: syzextra.h:120
Bucket m_bucket
Definition: syzextra.cc:86

Member Function Documentation

◆ Add() [1/2]

void SBucketWrapper::Add ( poly  p,
const int  l 
)
inline

adds p to the internal bucket destroys p, l == length(p)

Definition at line 104 of file syzextra.cc.

105  {
106  assume( pLength(p) == l );
107  sBucket_Add_p( m_bucket, p, l );
108  }
void sBucket_Add_p(sBucket_pt bucket, poly p, int length)
adds poly p to bucket destroys p!
Definition: sbuckets.cc:206
#define assume(x)
Definition: mod2.h:390
static unsigned pLength(poly a)
Definition: p_polys.h:192
int p
Definition: cfModGcd.cc:4019
Bucket m_bucket
Definition: syzextra.cc:86
int l
Definition: cfEzgcd.cc:93

◆ Add() [2/2]

void SBucketWrapper::Add ( poly  p)
inline

adds p to the internal bucket destroys p

Definition at line 112 of file syzextra.cc.

112 { Add(p, pLength(p)); }
void Add(poly p, const int l)
adds p to the internal bucket destroys p, l == length(p)
Definition: syzextra.cc:104
static unsigned pLength(poly a)
Definition: p_polys.h:192
int p
Definition: cfModGcd.cc:4019

◆ ClearAdd()

poly SBucketWrapper::ClearAdd ( )
inline

Definition at line 114 of file syzextra.cc.

115  {
116  poly p; int l;
117  sBucketClearAdd(m_bucket, &p, &l);
118  assume( pLength(p) == l );
119  return p;
120  }
#define assume(x)
Definition: mod2.h:390
static unsigned pLength(poly a)
Definition: p_polys.h:192
int p
Definition: cfModGcd.cc:4019
Bucket m_bucket
Definition: syzextra.cc:86
void sBucketClearAdd(sBucket_pt bucket, poly *p, int *length)
Definition: sbuckets.cc:277
int l
Definition: cfEzgcd.cc:93

Field Documentation

◆ m_bucket

Bucket SBucketWrapper::m_bucket
private

Definition at line 86 of file syzextra.cc.

◆ m_factory

SBucketFactory& SBucketWrapper::m_factory
private

Definition at line 88 of file syzextra.cc.


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