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

Method readCardinalVectorProperty

gfanlib/gfanlib_polymakefile.cpp:424–437  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

422
423
424ZVector PolymakeFile::readCardinalVectorProperty(const char *p)
425{
426 assert(hasProperty(p,true));
427 list<PolymakeProperty>::iterator prop=findProperty(p);
428 stringstream s(prop->value);
429
430 list<int> temp=readIntList(s);
431
432 ZVector ret(temp.size());
433 int I=0;
434 for(list<int>::const_iterator i=temp.begin();i!=temp.end();i++,I++)ret[I]=*i;
435
436 return ret;
437}
438
439
440void PolymakeFile::writeCardinalVectorProperty(const char *p, ZVector const &v)

Callers

nothing calls this directly

Calls 5

assertFunction · 0.85
readIntListFunction · 0.85
sizeMethod · 0.45
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected