My Project
Loading...
Searching...
No Matches
Public Member Functions | Private Attributes
PolyInputIterator< T > Class Template Reference

#include <Poly.h>

Public Member Functions

bool operator== (const PolyInputIterator &t2)
 
bool operator!= (const PolyInputIterator &t2)
 
 PolyInputIterator (poly p, ring r)
 
 PolyInputIterator (const PolyInputIterator &it)
 
PolyInputIteratoroperator++ ()
 
PolyInputIterator operator++ (int)
 
const ConstTermReference< Toperator* ()
 
shared_ptr< const Toperator-> ()
 

Private Attributes

poly t
 
ring r
 

Detailed Description

template<class T>
class PolyInputIterator< T >

Definition at line 283 of file Poly.h.

Constructor & Destructor Documentation

◆ PolyInputIterator() [1/2]

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

Definition at line 298 of file Poly.h.

299 {
300 t=p;
301 this->r=r;
302 }
int p
Definition: cfModGcd.cc:4078

◆ PolyInputIterator() [2/2]

template<class T >
PolyInputIterator< T >::PolyInputIterator ( const PolyInputIterator< T > &  it)
inline

Definition at line 303 of file Poly.h.

304 {
305 t=it.t;
306 r=it.r;
307 }

Member Function Documentation

◆ operator!=()

template<class T >
bool PolyInputIterator< T >::operator!= ( const PolyInputIterator< T > &  t2)
inline

Definition at line 294 of file Poly.h.

295 {
296 return t2.t!=t;
297 }

◆ operator*()

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

Definition at line 319 of file Poly.h.

320 {
321 return ConstTermReference<T> (t,r);
322 }

◆ operator++() [1/2]

template<class T >
PolyInputIterator & PolyInputIterator< T >::operator++ ( )
inline

Definition at line 308 of file Poly.h.

309 {
310 t=t->next;
311 return *this;
312 }

◆ operator++() [2/2]

template<class T >
PolyInputIterator PolyInputIterator< T >::operator++ ( int  )
inline

Definition at line 313 of file Poly.h.

314 {
315 PolyInputIterator it(*this);
316 ++(*this);
317 return it;
318 }

◆ operator->()

template<class T >
shared_ptr< const T > PolyInputIterator< T >::operator-> ( )
inline

Definition at line 323 of file Poly.h.

324 {
325 return shared_ptr<const T>(new T(p_Head(t,r),r,0));
326 }
STATIC_VAR jList * T
Definition: janet.cc:30
static poly p_Head(const poly p, const ring r)
copy the (leading) term of p
Definition: p_polys.h:858

◆ operator==()

template<class T >
bool PolyInputIterator< T >::operator== ( const PolyInputIterator< T > &  t2)
inline

Definition at line 290 of file Poly.h.

291 {
292 return t2.t==t;
293 }

Field Documentation

◆ r

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

Definition at line 288 of file Poly.h.

◆ t

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

Definition at line 287 of file Poly.h.


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