Public Member Functions | Private Attributes
ConstTermReference< T > Class Template Reference

#include <Poly.h>

Public Member Functions

 operator T () const
 
 ConstTermReference (poly p, ring r)
 
bool isConstant () const
 

Private Attributes

ring r
 
poly t
 

Detailed Description

template<class T>
class ConstTermReference< T >

Definition at line 262 of file Poly.h.

Constructor & Destructor Documentation

◆ ConstTermReference()

template<class T>
ConstTermReference< T >::ConstTermReference ( poly  p,
ring  r 
)
inline

Definition at line 272 of file Poly.h.

273  {
274  this->t=p;
275  this->r=r;
276  }
int p
Definition: cfModGcd.cc:4019

Member Function Documentation

◆ isConstant()

template<class T>
bool ConstTermReference< T >::isConstant ( ) const
inline

Definition at line 277 of file Poly.h.

278  {
279  return p_LmIsConstant(t,r);
280  }
static BOOLEAN p_LmIsConstant(const poly p, const ring r)
Definition: p_polys.h:982

◆ operator T()

template<class T>
ConstTermReference< T >::operator T ( ) const
inline

Definition at line 268 of file Poly.h.

269  {
270  return T(p_Head(t,r),r);
271  }
static poly p_Head(poly p, const ring r)
copy the i(leading) term of p
Definition: p_polys.h:825
STATIC_VAR jList * T
Definition: janet.cc:30

Field Documentation

◆ r

template<class T>
ring ConstTermReference< T >::r
private

Definition at line 265 of file Poly.h.

◆ t

template<class T>
poly ConstTermReference< T >::t
private

Definition at line 266 of file Poly.h.


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