Implements an element of any group.
More...
#include <elmt.hpp>
Private Attributes |
mpz_class | value |
| The value of this element.
|
Group * | group |
| The group it is in.
|
Detailed Description
Implements an element of any group.
Definition at line 29 of file elmt.hpp.
Constructor & Destructor Documentation
Elmt::Elmt |
( |
mpz_class |
v, |
|
|
Group * |
grp |
|
) |
| |
Initializes all the attributes of this instance.
- Parameters
-
v | The value to give to value. |
grp | The value to give to group. |
Definition at line 19 of file elmt.cpp.
Initializes this instance from a ByteTree.
- Parameters
-
bt | A leaf representing the value. |
grp | The Group this element is in. |
Definition at line 26 of file elmt.cpp.
{
{
std::cout<<"ERROR: in Elmt(bt,grp), bt is not a Leaf."
<<"\nbt=";
std::cout<<std::endl;
exit(1);
}
}
Member Function Documentation
Group * Elmt::getGroup |
( |
| ) |
|
Returns the group this element is in.
Definition at line 54 of file elmt.cpp.
mpz_class Elmt::getValue |
( |
| ) |
|
Returns the value of this element.
Definition at line 48 of file elmt.cpp.
Returns a leaf of the size specified in the base group containing the value of this element.
Definition at line 41 of file elmt.cpp.
Member Data Documentation
Group* arithm::Elmt::group |
|
private |
The group it is in.
Definition at line 40 of file elmt.hpp.
mpz_class arithm::Elmt::value |
|
private |
The value of this element.
Definition at line 35 of file elmt.hpp.
The documentation for this class was generated from the following files: