Givaro
Public Types | Public Member Functions | Data Fields | Static Public Attributes | Friends
Degree Class Reference

#include <givdegree.h>

Public Types

enum  { DEGPOLYZERO = -1 }
typedef long value_type

Public Member Functions

 Degree (long a=DEGPOLYZERO)
long value () const
Degree operator+ (const Degree &d) const
Degree operator- (const Degree &d) const
Degree operator* (const Degree &d) const
Degree operator/ (const Degree &d) const
Degreeoperator+= (const Degree &d)
Degreeoperator-= (const Degree &d)
Degreeoperator*= (const Degree &d)
Degreeoperator/= (const Degree &d)
Degree operator<< (const int i) const
Degree operator>> (const int i) const
Degreeoperator<<= (const int i)
Degreeoperator>>= (const int i)
long operator++ ()
long operator-- ()
long operator++ (int)
long operator-- (int)
int operator== (const Degree &d) const
int operator!= (const Degree &d) const
int operator<= (const Degree &d) const
int operator< (const Degree &d) const
int operator>= (const Degree &d) const
int operator> (const Degree &d) const
int operator== (const long &d) const
int operator!= (const long &d) const
int operator<= (const long &d) const
int operator< (const long &d) const
int operator>= (const long &d) const
int operator> (const long &d) const

Data Fields

long _deg

Static Public Attributes

static const long deginfty = Degree::DEGPOLYZERO

Friends

std::ostream & operator<< (std::ostream &o, const Degree &d)
std::istream & operator>> (std::istream &i, Degree &d)

Detailed Description

Examples:

examples/FiniteField/GF128.C, examples/FiniteField/GFirreducible.C, examples/Polynomial/highorder.C, examples/Polynomial/isirred.C, examples/Polynomial/isprimitive.C, examples/Polynomial/pol_arith.C, examples/Polynomial/pol_eval.C, examples/Polynomial/pol_factor.C, examples/Polynomial/PolynomialCRT.C, and examples/Polynomial/trunc_arith.C.


Member Typedef Documentation

typedef long value_type

Member Enumeration Documentation

anonymous enum
Enumerator:
DEGPOLYZERO 

Constructor & Destructor Documentation

Degree ( long  a = DEGPOLYZERO) [inline]

Member Function Documentation

long value ( ) const [inline]
Degree operator+ ( const Degree d) const [inline]
Degree operator- ( const Degree d) const [inline]
Degree operator* ( const Degree d) const [inline]
Degree operator/ ( const Degree d) const [inline]
Degree& operator+= ( const Degree d) [inline]
Degree& operator-= ( const Degree d) [inline]
Degree& operator*= ( const Degree d) [inline]
Degree& operator/= ( const Degree d) [inline]
Degree operator<< ( const int  i) const [inline]
Degree operator>> ( const int  i) const [inline]
Degree& operator<<= ( const int  i) [inline]
Degree& operator>>= ( const int  i) [inline]
long operator++ ( ) [inline]
long operator-- ( ) [inline]
long operator++ ( int  ) [inline]
long operator-- ( int  ) [inline]
int operator== ( const Degree d) const [inline]
int operator!= ( const Degree d) const [inline]
int operator<= ( const Degree d) const [inline]
int operator< ( const Degree d) const [inline]
int operator>= ( const Degree d) const [inline]
int operator> ( const Degree d) const [inline]
int operator== ( const long &  d) const [inline]
int operator!= ( const long &  d) const [inline]
int operator<= ( const long &  d) const [inline]
int operator< ( const long &  d) const [inline]
int operator>= ( const long &  d) const [inline]
int operator> ( const long &  d) const [inline]

Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  o,
const Degree d 
) [friend]
std::istream& operator>> ( std::istream &  i,
Degree d 
) [friend]

Field Documentation

const long deginfty = Degree::DEGPOLYZERO [static]
long _deg

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