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

Degree type for polynomials. More...

#include <givdegree.h>

Public Types

enum  { DEGPOLYZERO =-1 }
 
typedef int64_t value_type
 

Public Member Functions

 Degree (int64_t a=DEGPOLYZERO)
 
int64_t value () const
 
Degree operator+ (const Degree &d) const
 
Degree operator- (const Degree &d) const
 
Degree operator* (const uint64_t &e) const
 
Degree operator/ (const uint64_t &e) const
 
Degreeoperator+= (const Degree &d)
 
Degreeoperator-= (const Degree &d)
 
Degreeoperator*= (const uint64_t &e)
 
Degreeoperator/= (const uint64_t &e)
 
Degree operator<< (const int i) const
 
Degree operator>> (const int i) const
 
Degreeoperator<<= (const int i)
 
Degreeoperator>>= (const int i)
 
int64_t operator++ ()
 
int64_t operator-- ()
 
int64_t operator++ (int)
 
int64_t 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 int64_t &d) const
 
int operator!= (const int64_t &d) const
 
int operator<= (const int64_t &d) const
 
int operator< (const int64_t &d) const
 
int operator>= (const int64_t &d) const
 
int operator> (const int64_t &d) const
 

Data Fields

int64_t _deg
 

Static Public Attributes

static const int64_t deginfty = Degree::DEGPOLYZERO
 

Friends

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

Detailed Description

Degree type for polynomials.

Member Typedef Documentation

◆ value_type

typedef int64_t value_type

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
Enumerator
DEGPOLYZERO 

Constructor & Destructor Documentation

◆ Degree()

Degree ( int64_t  a = DEGPOLYZERO)
inline

Member Function Documentation

◆ value()

int64_t value ( ) const
inline

◆ operator+()

Degree operator+ ( const Degree d) const
inline

◆ operator-()

Degree operator- ( const Degree d) const
inline

◆ operator*()

Degree operator* ( const uint64_t &  e) const
inline

◆ operator/()

Degree operator/ ( const uint64_t &  e) const
inline

◆ operator+=()

Degree& operator+= ( const Degree d)
inline

◆ operator-=()

Degree& operator-= ( const Degree d)
inline

◆ operator*=()

Degree& operator*= ( const uint64_t &  e)
inline

◆ operator/=()

Degree& operator/= ( const uint64_t &  e)
inline

◆ operator<<()

Degree operator<< ( const int  i) const
inline

◆ operator>>()

Degree operator>> ( const int  i) const
inline

◆ operator<<=()

Degree& operator<<= ( const int  i)
inline

◆ operator>>=()

Degree& operator>>= ( const int  i)
inline

◆ operator++() [1/2]

int64_t operator++ ( )
inline

◆ operator--() [1/2]

int64_t operator-- ( )
inline

◆ operator++() [2/2]

int64_t operator++ ( int  )
inline

◆ operator--() [2/2]

int64_t operator-- ( int  )
inline

◆ operator==() [1/2]

int operator== ( const Degree d) const
inline

◆ operator!=() [1/2]

int operator!= ( const Degree d) const
inline

◆ operator<=() [1/2]

int operator<= ( const Degree d) const
inline

◆ operator<() [1/2]

int operator< ( const Degree d) const
inline

◆ operator>=() [1/2]

int operator>= ( const Degree d) const
inline

◆ operator>() [1/2]

int operator> ( const Degree d) const
inline

◆ operator==() [2/2]

int operator== ( const int64_t &  d) const
inline

◆ operator!=() [2/2]

int operator!= ( const int64_t &  d) const
inline

◆ operator<=() [2/2]

int operator<= ( const int64_t &  d) const
inline

◆ operator<() [2/2]

int operator< ( const int64_t &  d) const
inline

◆ operator>=() [2/2]

int operator>= ( const int64_t &  d) const
inline

◆ operator>() [2/2]

int operator> ( const int64_t &  d) const
inline

Friends And Related Function Documentation

◆ operator<<

std::ostream& operator<< ( std::ostream &  o,
const Degree d 
)
friend

◆ operator>>

std::istream& operator>> ( std::istream &  i,
Degree d 
)
friend

Field Documentation

◆ deginfty

const int64_t deginfty = Degree::DEGPOLYZERO
static

◆ _deg

int64_t _deg

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