OpenStudio:utilities
Loading...
Searching...
No Matches
openstudio::ValueFinder< T, U > Class Template Reference

#include <Finder.hpp>

Public Member Functions

bool operator() (const std::shared_ptr< T > &objectPointer) const
 
bool operator() (const T &object) 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

◆ ValueFinder()

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

Member Function Documentation

◆ operator()() [1/2]

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

◆ operator()() [2/2]

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