Macaulay2 Engine
Loading...
Searching...
No Matches

◆ elem_text_out()

void M2::ARingGFFlint::elem_text_out ( buffer & o,
const ElementType & a,
bool p_one = true,
bool p_plus = false,
bool p_parens = false ) const

Definition at line 191 of file aring-gf-flint.cpp.

196{
197 if (is_zero(a))
198 {
199 o << "0";
200 return;
201 }
202 ring_elem b;
203 lift(&originalRing(), a, b);
204 originalRing().elem_text_out(o, b, p_one, p_plus, p_parens);
205}
bool is_zero(const ElementType &f) const
const PolynomialRing & originalRing() const
bool lift(const Ring *Rg, const ElementType &f, ring_elem &result) const
virtual void elem_text_out(buffer &o, const ring_elem f, bool p_one=true, bool p_plus=false, bool p_parens=false) const =0

References Ring::elem_text_out(), is_zero(), lift(), and originalRing().