OpenStudioCore:utilities
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Pages
Public Member Functions | List of all members
openstudio::ValueFinder< T, U > Class Template Reference

#include <Finder.hpp>

Public Member Functions

bool operator() (const T &object) const
 
bool operator() (const std::shared_ptr< T > &objectPointer) const
 
 ValueFinder (const U &value)
 

Detailed Description

template<class T, typename U>
class openstudio::ValueFinder< T, U >

Functor object for finding objects by value.

Templated on T, which has method U value().

Constructor & Destructor Documentation

template<class T , typename U >
openstudio::ValueFinder< T, U >::ValueFinder ( const U &  value)
inline

Member Function Documentation

template<class T , typename U >
bool openstudio::ValueFinder< T, U >::operator() ( const T &  object) const
inline
template<class T , typename U >
bool openstudio::ValueFinder< T, U >::operator() ( const std::shared_ptr< T > &  objectPointer) const
inline