Givaro 4.2.2
IntPrimeDom Class Referenceabstract

Primality tests. More...

#include <givintprime.h>

Inheritance diagram for IntPrimeDom:
Collaboration diagram for IntPrimeDom:

Public Member Functions

bool isUnit (const Rep &x) const
 isUnit
bool isDivisor (const Element &a, const Element &b) const
 isDivisor (a, b) Test if b | a.
Input/Output Operations
std::istream & read (std::istream &is) const
 Read field.
virtual std::istream & read (std::istream &is, Element &x) const
 Read field element.
std::ostream & write (std::ostream &os, std::string F) const
 Read field.
std::ostream & write (std::ostream &os, const Element &x) const
 Print field element.
Data Object Management.

first argument is set and the value is also returned.

Detailed Description

Member Function Documentation

◆ read() [1/2]

template<class _Element>
std::istream & read ( std::istream & is) const
inlineinherited

Read field.

Returns
input stream from which field is read.
Parameters
isinput stream from which field is read.

◆ read() [2/2]

template<class _Element>
virtual std::istream & read ( std::istream & is,
Element & x ) const
inlinevirtualinherited

Read field element.

Returns
input stream from which field element is read.
Parameters
isinput stream from which field element is read.
xfield element.

◆ write() [1/2]

template<class _Element>
std::ostream & write ( std::ostream & os,
std::string F ) const
inlineinherited

Read field.

Returns
input stream from which field is read.
Parameters
isinput stream from which field is read.

◆ write() [2/2]

template<class _Element>
std::ostream & write ( std::ostream & os,
const Element & x ) const
inlineinherited

Print field element.

Returns
output stream to which field element is written.
Parameters
osoutput stream to which field element is written.
xfield element.

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