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

◆ spair_delete()

void gbA::spair_delete ( spair *& p)
private

Definition at line 436 of file gb-default.cpp.

437{
438 if (p == nullptr) return;
439 if (p->type == SPAIR::SPAIR_GEN || p->type == SPAIR::SPAIR_ELEM)
440 {
441 R->gbvector_remove(p->x.f.f);
442 R->gbvector_remove(p->x.f.fsyz);
443 }
444 R->gbvector_remove(p->lead_of_spoly);
445 lcm_stash->delete_elem(p->lcm);
446 spair_stash->delete_elem(p);
447}
GBRing * R
stash * lcm_stash
stash * spair_stash
@ SPAIR_GEN
@ SPAIR_ELEM
int p

References lcm_stash, p, R, SPAIR_ELEM, SPAIR_GEN, and spair_stash.

Referenced by flush_pairs(), minimalize_pairs_non_ZZ(), process_spair(), remove_spair_list(), and remove_unneeded_pairs().