| 422 | |
| 423 | |
| 424 | ZVector 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 | |
| 440 | void PolymakeFile::writeCardinalVectorProperty(const char *p, ZVector const &v) |
nothing calls this directly
no test coverage detected