ProteoWizard
Public Member Functions | Public Attributes | List of all members
pwiz::data::diff_impl::HasID< object_type > Struct Template Reference

#include <diff_std.hpp>

Public Member Functions

 HasID (const std::string &id)
 
bool operator() (const boost::shared_ptr< object_type > &objectPtr)
 

Public Attributes

const std::string & id_
 

Detailed Description

template<typename object_type>
struct pwiz::data::diff_impl::HasID< object_type >

Definition at line 340 of file diff_std.hpp.

Constructor & Destructor Documentation

§ HasID()

template<typename object_type >
pwiz::data::diff_impl::HasID< object_type >::HasID ( const std::string &  id)
inline

Definition at line 343 of file diff_std.hpp.

343 : id_(id) {}
const std::string & id_
Definition: diff_std.hpp:342

Member Function Documentation

§ operator()()

template<typename object_type >
bool pwiz::data::diff_impl::HasID< object_type >::operator() ( const boost::shared_ptr< object_type > &  objectPtr)
inline

Definition at line 344 of file diff_std.hpp.

344 {return objectPtr->id == id_;}
const std::string & id_
Definition: diff_std.hpp:342

Member Data Documentation

§ id_

template<typename object_type >
const std::string& pwiz::data::diff_impl::HasID< object_type >::id_

Definition at line 342 of file diff_std.hpp.


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