ProteoWizard
Public Member Functions | List of all members
MyWrapper Class Reference
Inheritance diagram for MyWrapper:
pwiz::proteome::ProteinListWrapper pwiz::proteome::ProteinList

Public Member Functions

 MyWrapper (const SpectrumListPtr &inner)
 
void verifySize (size_t size)
 
virtual SpectrumPtr spectrum (size_t index, bool getBinaryData=false) const
 
 MyWrapper (const ProteinListPtr &inner)
 
void verifySize (size_t size)
 
- Public Member Functions inherited from pwiz::proteome::ProteinListWrapper
 ProteinListWrapper (const ProteinListPtr &inner)
 
virtual size_t size () const
 
virtual ProteinPtr protein (size_t index, bool getSequence=true) const
 
- Public Member Functions inherited from pwiz::proteome::ProteinList
virtual bool empty () const
 
virtual size_t find (const std::string &id) const
 
virtual IndexList findKeyword (const std::string &keyword, bool caseSensitive=true) const
 
virtual ~ProteinList ()
 

Additional Inherited Members

- Protected Attributes inherited from pwiz::proteome::ProteinListWrapper
ProteinListPtr inner_
 

Detailed Description

Definition at line 33 of file SpectrumListWrapperTest.cpp.

Constructor & Destructor Documentation

§ MyWrapper() [1/2]

MyWrapper::MyWrapper ( const SpectrumListPtr inner)
inline

Definition at line 37 of file SpectrumListWrapperTest.cpp.

38  : SpectrumListWrapper(inner)
39  {}
Inheritable pass-through implementation for wrapping a SpectrumList.

§ MyWrapper() [2/2]

MyWrapper::MyWrapper ( const ProteinListPtr inner)
inline

Definition at line 36 of file ProteinListWrapperTest.cpp.

37  : ProteinListWrapper(inner)
38  {}
ProteinListWrapper(const ProteinListPtr &inner)

Member Function Documentation

§ verifySize() [1/2]

void MyWrapper::verifySize ( size_t  size)
inline

Definition at line 41 of file SpectrumListWrapperTest.cpp.

References unit_assert.

42  {
43  // verify that we can see inner_
44  unit_assert(size == inner_->size());
45  }
#define unit_assert(x)
Definition: unit.hpp:85

§ spectrum()

virtual SpectrumPtr MyWrapper::spectrum ( size_t  index,
bool  getBinaryData = false 
) const
inlinevirtual

Definition at line 47 of file SpectrumListWrapperTest.cpp.

47 {return inner_->spectrum(index, getBinaryData);}

§ verifySize() [2/2]

void MyWrapper::verifySize ( size_t  size)
inline

Definition at line 40 of file ProteinListWrapperTest.cpp.

References unit_assert.

41  {
42  // verify that we can see inner_
43  unit_assert(size == inner_->size());
44  }
#define unit_assert(x)
Definition: unit.hpp:85

The documentation for this class was generated from the following files: