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 ChromatogramListPtr &inner)
 
void verifySize (size_t size)
 
 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 34 of file ChromatogramListWrapperTest.cpp.

Constructor & Destructor Documentation

◆ MyWrapper() [1/3]

MyWrapper::MyWrapper ( const ChromatogramListPtr inner)
inline

Definition at line 38 of file ChromatogramListWrapperTest.cpp.

40 {}
Inheritable pass-through implementation for wrapping a ChromatogramList.

◆ MyWrapper() [2/3]

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() [3/3]

MyWrapper::MyWrapper ( const ProteinListPtr inner)
inline

Definition at line 36 of file ProteinListWrapperTest.cpp.

37 : ProteinListWrapper(inner)
38 {}
Inheritable pass-through implementation for wrapping a ProteinList.

Member Function Documentation

◆ verifySize() [1/3]

void MyWrapper::verifySize ( size_t  size)
inline

Definition at line 42 of file ChromatogramListWrapperTest.cpp.

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

References pwiz::proteome::ProteinListWrapper::inner_, pwiz::proteome::ProteinListWrapper::size(), and unit_assert.

◆ verifySize() [2/3]

void MyWrapper::verifySize ( size_t  size)
inline

Definition at line 41 of file SpectrumListWrapperTest.cpp.

42 {
43 // verify that we can see inner_
44 unit_assert(size == inner_->size());
45 }

References pwiz::proteome::ProteinListWrapper::inner_, pwiz::proteome::ProteinListWrapper::size(), and unit_assert.

◆ 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);}

References pwiz::proteome::ProteinListWrapper::inner_.

◆ verifySize() [3/3]

void MyWrapper::verifySize ( size_t  size)
inline

Definition at line 40 of file ProteinListWrapperTest.cpp.

41 {
42 // verify that we can see inner_
43 unit_assert(size == inner_->size());
44 }

References pwiz::proteome::ProteinListWrapper::inner_, pwiz::proteome::ProteinListWrapper::size(), and unit_assert.


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