Givaro
Public Types | Public Member Functions | Static Public Member Functions | Protected Types | Protected Attributes | Static Protected Attributes | Friends
StaticElement< DomainStyle > Struct Template Reference

Static Element. More...

#include <StaticElement.h>

Public Types

typedef DomainStyle Domain
 

Public Member Functions

 StaticElement ()
 
 StaticElement (const Integer &i)
 
 StaticElement (const double &i)
 
 StaticElement (const int32_t &i)
 
 StaticElement (const uint32_t &i)
 
 StaticElement (const int64_t &i)
 
 StaticElement (const uint64_t &i)
 
 operator short () const
 
 operator unsigned short () const
 
 operator unsigned char () const
 
 operator uint32_t () const
 
 operator int () const
 
 operator float () const
 
 operator uint64_t () const
 
 operator int64_t () const
 
 operator double () const
 
 operator Integer () const
 
template<class INITCST >
 operator INITCST () const
 
template<class INITCST >
 StaticElement (const INITCST &i)
 
template<class INITCST >
 StaticElement (const INITCST &i, const Domain &D)
 
StaticElementoperator= (const StaticElement &e)
 
bool operator== (const StaticElement &e)
 
bool operator!= (const StaticElement &e)
 
bool isZero () const
 
bool isOne () const
 
bool isMOne () const
 
const StaticElement operator* (const StaticElement &e) const
 
const StaticElement operator/ (const StaticElement &e) const
 
const StaticElement operator+ (const StaticElement &e) const
 
const StaticElement operator- (const StaticElement &e) const
 
const StaticElement operator- () const
 
StaticElementoperator*= (const StaticElement &e)
 
StaticElementoperator/= (const StaticElement &e)
 
StaticElementoperator+= (const StaticElement &e)
 
StaticElementoperator-= (const StaticElement &e)
 
StaticElementoperator-- ()
 
StaticElementoperator++ ()
 
StaticElement operator-- (int)
 
StaticElement operator++ (int)
 

Static Public Member Functions

static void setDomain (const Domain &D)
 
static const DomaingetDomain ()
 
static bool isZero (const StaticElement &e)
 
static bool isOne (const StaticElement &e)
 
static bool isMOne (const StaticElement &e)
 

Protected Types

typedef Domain::Element Rep
 

Protected Attributes

Rep _elem
 

Static Protected Attributes

static Domain _domain
 

Friends

std::istream & operator>> (std::istream &i, StaticElement &a)
 
std::ostream & operator<< (std::ostream &o, const StaticElement &a)
 

Detailed Description

template<class DomainStyle>
struct Givaro::StaticElement< DomainStyle >

Static Element.

Examples:
examples/FiniteField/all_field.C.

Member Typedef Documentation

typedef DomainStyle Domain
typedef Domain::Element Rep
protected

Constructor & Destructor Documentation

StaticElement ( )
inline
StaticElement ( const Integer i)
inline
StaticElement ( const double &  i)
inline
StaticElement ( const int32_t &  i)
inline
StaticElement ( const uint32_t &  i)
inline
StaticElement ( const int64_t &  i)
inline
StaticElement ( const uint64_t &  i)
inline
StaticElement ( const INITCST &  i)
inline
StaticElement ( const INITCST &  i,
const Domain D 
)
inline

Member Function Documentation

static void setDomain ( const Domain D)
inlinestatic
static const Domain& getDomain ( )
inlinestatic
operator short ( ) const
inline
operator unsigned short ( ) const
inline
operator unsigned char ( ) const
inline
operator uint32_t ( ) const
inline
operator int ( ) const
inline
operator float ( ) const
inline
operator uint64_t ( ) const
inline
operator int64_t ( ) const
inline
operator double ( ) const
inline
operator Integer ( ) const
inline
operator INITCST ( ) const
inline
StaticElement& operator= ( const StaticElement< DomainStyle > &  e)
inline
bool operator== ( const StaticElement< DomainStyle > &  e)
inline
bool operator!= ( const StaticElement< DomainStyle > &  e)
inline
bool isZero ( ) const
inline
static bool isZero ( const StaticElement< DomainStyle > &  e)
inlinestatic
bool isOne ( ) const
inline
static bool isOne ( const StaticElement< DomainStyle > &  e)
inlinestatic
bool isMOne ( ) const
inline
static bool isMOne ( const StaticElement< DomainStyle > &  e)
inlinestatic
const StaticElement operator* ( const StaticElement< DomainStyle > &  e) const
inline
const StaticElement operator/ ( const StaticElement< DomainStyle > &  e) const
inline
const StaticElement operator+ ( const StaticElement< DomainStyle > &  e) const
inline
const StaticElement operator- ( const StaticElement< DomainStyle > &  e) const
inline
const StaticElement operator- ( ) const
inline
StaticElement& operator*= ( const StaticElement< DomainStyle > &  e)
inline
StaticElement& operator/= ( const StaticElement< DomainStyle > &  e)
inline
StaticElement& operator+= ( const StaticElement< DomainStyle > &  e)
inline
StaticElement& operator-= ( const StaticElement< DomainStyle > &  e)
inline
StaticElement& operator-- ( )
inline
StaticElement& operator++ ( )
inline
StaticElement operator-- ( int  )
inline
StaticElement operator++ ( int  )
inline

Friends And Related Function Documentation

std::istream& operator>> ( std::istream &  i,
StaticElement< DomainStyle > &  a 
)
friend
std::ostream& operator<< ( std::ostream &  o,
const StaticElement< DomainStyle > &  a 
)
friend

Field Documentation

Field7 _domain
staticprotected
Rep _elem
protected

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