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

◆ destroy()

void QRingInfo::destroy ( GBRing * GR)
virtual

Reimplemented in QRingInfo_field, and QRingInfo_ZZ.

Definition at line 24 of file qring.cpp.

25{
26 // remove the gbvector's as they are stashed in gbrings.
27 // WARNING: these need to be deleted only if the gbring is non-NULL.
28
29 if (GR == nullptr) return;
30 for (int i = 0; i < quotient_gbvectors.size(); i++)
31 GR->gbvector_remove(quotient_gbvectors[i]);
32}
void gbvector_remove(gbvector *f)
Definition gbring.cpp:288

References GBRing::gbvector_remove().

Referenced by QRingInfo_field::destroy(), and QRingInfo_ZZ::destroy().