MCPcopy Create free account
hub / github.com/Singular/Singular / Copy

Method Copy

Singular/subexpr.cc:689–712  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

687}
688
689void sleftv::Copy(leftv source)
690{
691 Init();
692 rtyp=source->Typ();
693 void *d=source->Data();
694 if(!errorreported)
695 {
696 if (rtyp==BUCKET_CMD)
697 {
698 rtyp=POLY_CMD;
699 data=(void*)pCopy(sBucketPeek((sBucket_pt)d));
700 }
701 else
702 data=s_internalCopy(rtyp,d);
703 if ((source->attribute!=NULL)||(source->e!=NULL))
704 attribute=source->CopyA();
705 flag=source->flag;
706 if (source->next!=NULL)
707 {
708 next=(leftv)omAllocBin(sleftv_bin);
709 next->Copy(source->next);
710 }
711 }
712}
713
714void * sleftv::CopyD(int t)
715{

Callers 2

CopyAMethod · 0.45
subexpr.ccFile · 0.45

Calls 7

sBucketPeekFunction · 0.85
s_internalCopyFunction · 0.85
omAllocBinFunction · 0.85
CopyAMethod · 0.80
InitFunction · 0.50
TypMethod · 0.45
DataMethod · 0.45

Tested by

no test coverage detected