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 111 of file syzextra.cc.

Member Typedef Documentation

◆ Bucket

Definition at line 113 of file syzextra.cc.

Constructor & Destructor Documentation

◆ SBucketWrapper()

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

Definition at line 120 of file syzextra.cc.

120  :
121  m_bucket( factory.getBucket(r) ),
122  m_factory( factory )
123  {}
SBucketFactory & m_factory
Definition: syzextra.cc:118
Bucket getBucket(const ring r, const bool remove=true)
Definition: syzextra.h:104
const ring r
Definition: syzextra.cc:208
Bucket m_bucket
Definition: syzextra.cc:116

◆ ~SBucketWrapper()

SBucketWrapper::~SBucketWrapper ( )
inline

Definition at line 125 of file syzextra.cc.

126  {
128  }
SBucketFactory & m_factory
Definition: syzextra.cc:118
void putBucket(const Bucket &bt, const bool replace=false)
Definition: syzextra.h:136
Bucket m_bucket
Definition: syzextra.cc:116

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 134 of file syzextra.cc.

135  {
136  assume( pLength(p) == l );
137  sBucket_Add_p( m_bucket, p, l );
138  }
return P p
Definition: myNF.cc:203
void sBucket_Add_p(sBucket_pt bucket, poly p, int length)
adds poly p to bucket destroys p!
Definition: sbuckets.cc:201
static unsigned pLength(poly a)
Definition: p_polys.h:189
Bucket m_bucket
Definition: syzextra.cc:116
assume(R !=NULL)
int l
Definition: cfEzgcd.cc:94

◆ Add() [2/2]

void SBucketWrapper::Add ( poly  p)
inline

adds p to the internal bucket destroys p

Definition at line 142 of file syzextra.cc.

142 { Add(p, pLength(p)); }
return P p
Definition: myNF.cc:203
void Add(poly p, const int l)
adds p to the internal bucket destroys p, l == length(p)
Definition: syzextra.cc:134
static unsigned pLength(poly a)
Definition: p_polys.h:189

◆ ClearAdd()

poly SBucketWrapper::ClearAdd ( )
inline

Definition at line 144 of file syzextra.cc.

145  {
146  poly p; int l;
148  assume( pLength(p) == l );
149  return p;
150  }
return P p
Definition: myNF.cc:203
static unsigned pLength(poly a)
Definition: p_polys.h:189
Bucket m_bucket
Definition: syzextra.cc:116
polyrec * poly
Definition: hilb.h:10
assume(R !=NULL)
void sBucketClearAdd(sBucket_pt bucket, poly *p, int *length)
Definition: sbuckets.cc:270
int l
Definition: cfEzgcd.cc:94

Field Documentation

◆ m_bucket

Bucket SBucketWrapper::m_bucket
private

Definition at line 116 of file syzextra.cc.

◆ m_factory

SBucketFactory& SBucketWrapper::m_factory
private

Definition at line 118 of file syzextra.cc.


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