CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Private Attributes
edm::WillGetIfMatch< T, M > Class Template Reference

#include <WillGetIfMatch.h>

Public Member Functions

bool operator() (BranchDescription const &branchDescription)
 
template<typename U >
 WillGetIfMatch (U const &match, M *module)
 

Private Attributes

std::function< bool(BranchDescription
const &)> 
match_
 
M * module_
 

Detailed Description

template<typename T, typename M>
class edm::WillGetIfMatch< T, M >

This is intended to be used only by the class GetterOfProducts. See comments in the file GetterOfProducts.h.

Author
W. David Dagenhart, created 6 August, 2012

Definition at line 20 of file WillGetIfMatch.h.

Constructor & Destructor Documentation

template<typename T , typename M >
template<typename U >
edm::WillGetIfMatch< T, M >::WillGetIfMatch ( U const &  match,
M *  module 
)
inline

Definition at line 24 of file WillGetIfMatch.h.

24  :
25  match_(match),
26  module_(module) {
27  }
std::function< bool(BranchDescription const &)> match_
std::string match(BranchDescription const &a, BranchDescription const &b, std::string const &fileName, BranchDescription::MatchMode m)
Definition: vlib.h:209

Member Function Documentation

template<typename T , typename M >
bool edm::WillGetIfMatch< T, M >::operator() ( BranchDescription const &  branchDescription)
inline

Definition at line 29 of file WillGetIfMatch.h.

References edm::WillGetIfMatch< T, M >::match_.

29  {
30  if (match_(branchDescription)){
31 
32  // We plan to implement a call to a function that
33  // registers the products a module will get, but
34  // this has not been implemented yet. This is
35  // where that function would get called when it
36  // is implemented, automatically registering
37  // the gets for the module. (Creating a place to call
38  // this function is the main reason for the existence
39  // of this class).
40  // module_->template willGet<T>(edm::makeInputTag(branchDescription));
41 
42  return true;
43  }
44  return false;
45  }
std::function< bool(BranchDescription const &)> match_

Member Data Documentation

template<typename T , typename M >
std::function<bool(BranchDescription const&)> edm::WillGetIfMatch< T, M >::match_
private

Definition at line 48 of file WillGetIfMatch.h.

Referenced by edm::WillGetIfMatch< T, M >::operator()().

template<typename T , typename M >
M* edm::WillGetIfMatch< T, M >::module_
private

Definition at line 49 of file WillGetIfMatch.h.