ProteoWizard
Public Member Functions | Public Attributes | List of all members
pwiz::data::CVParamIsChildOf Struct Reference

functor for finding children of a specified CVID in a collection of CVParams: More...

#include <ParamTypes.hpp>

Public Member Functions

 CVParamIsChildOf (CVID cvid)
 
bool operator() (const CVParam &param) const
 

Public Attributes

CVID cvid_
 

Detailed Description

functor for finding children of a specified CVID in a collection of CVParams:

vector<CVParam>::const_iterator it = find_if(params.begin(), params.end(), CVParamIsChildOf(MS_software));

Definition at line 164 of file ParamTypes.hpp.

Constructor & Destructor Documentation

§ CVParamIsChildOf()

pwiz::data::CVParamIsChildOf::CVParamIsChildOf ( CVID  cvid)
inline

Definition at line 166 of file ParamTypes.hpp.

166 : cvid_(cvid) {}

Member Function Documentation

§ operator()()

bool pwiz::data::CVParamIsChildOf::operator() ( const CVParam param) const
inline

Definition at line 167 of file ParamTypes.hpp.

References pwiz::data::CVParam::cvid, and pwiz::cv::cvIsA().

167 {return cvIsA(param.cvid, cvid_);}
PWIZ_API_DECL bool cvIsA(CVID child, CVID parent)
returns true iff child IsA parent in the CV

Member Data Documentation

§ cvid_

CVID pwiz::data::CVParamIsChildOf::cvid_

Definition at line 168 of file ParamTypes.hpp.


The documentation for this struct was generated from the following file: