CMS 3D CMS Logo

Public Member Functions | Private Attributes

edm::WillGetIfMatch< T, M > Class Template Reference

#include <WillGetIfMatch.h>

List of all members.

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.


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_.

                                                                {
      if (match_(branchDescription)){

        // We plan to implement a call to a function that
        // registers the products a module will get, but
        // this has not been implemented yet. This is
        // where that function would get called when it
        // is implemented, automatically registering
        // the gets for the module. (Creating a place to call
        // this function is the main reason for the existence
        // of this class).
        // module_->template willGet<T>(edm::makeInputTag(branchDescription));

        return true;
      }
      return false;
    }

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.