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

Function si_intset_String

misc/intset.cc:24–43  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

22}
23
24char* si_intset_String(blackbox *b, void *d)
25{
26 if(d!=NULL)
27 {
28 si_intset *myset;
29 myset=(si_intset*)d;
30 std::stringstream out;
31 StringSetS("{");
32 for (si_intset::iterator it = myset->begin(); it != myset->end(); ++it)
33 {
34 StringAppend("%d,", *it);
35 }
36 StringAppendS("}");
37 return(omStrDup(StringEndS()));
38 }
39 else
40 {
41 return omStrDup("invalid object");
42 }
43}
44
45void* si_intset_Copy(blackbox *b, void *d)
46{

Callers

nothing calls this directly

Calls 6

StringSetSFunction · 0.85
StringAppendFunction · 0.85
StringAppendSFunction · 0.85
StringEndSFunction · 0.85
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected