int FElem::getBit(unsigned int i, const FieldType& fieldType) { promoteToFieldType(fieldType); if (this->fieldType() == fieldType) { return elem_->getBit(i); } else { GADGETLIB_FATAL("Attempted to extract bits from incompatible field type."); } }
FElem& FElem::operator+=(const FElem& other) { promoteToFieldType(other.fieldType()); *elem_ += *other.elem_; return *this; }
FElem FElem::inverse(const FieldType& fieldType) { promoteToFieldType(fieldType); return FElem(*(elem_->inverse())); }
int FElem::getBit(unsigned int i, const FieldType& fieldType) { promoteToFieldType(fieldType); if (this->fieldType() == fieldType) { return elem_->getBit(i); } }