28 using namespace pwiz::proteome;
29 using namespace pwiz::util;
40 void verifySize(
size_t size)
58 virtual size_t size()
const {
return inner_->size()/2;}
59 virtual ProteinPtr protein(
size_t index,
bool getSequence =
true)
const {
return inner_->protein(index*2, getSequence);}
65 typedef shared_ptr<ProteinListSimple> ProteinListSimplePtr;
68 const size_t proteinCount = 10;
69 for (
size_t i=0; i<proteinCount; i++)
70 simple->proteins.push_back(
ProteinPtr(
new Protein(
"PWIZ:" + lexical_cast<string>(i), i,
"",
"")));
74 shared_ptr<MyWrapper> wrapper(
new MyWrapper(simple));
76 wrapper->verifySize(10);
78 for (
size_t i=0; i<proteinCount; i++)
90 shared_ptr<FilterWrapper> filterWrapper(
new FilterWrapper(simple));
94 for (
size_t i=0; i<filterWrapper->size(); i++)
106 int main(
int argc,
const char* argv[])