OpenStudio:utilities
Loading...
Searching...
No Matches
openstudio::NameFinder< T > Class Template Reference

#include <Finder.hpp>

Public Member Functions

 NameFinder (const std::string &name, bool caseSensitive=false)
 
bool operator() (const std::shared_ptr< T > &object) const
 
bool operator() (const T &object) const
 

Detailed Description

template<class T>
class openstudio::NameFinder< T >

Functor object for finding objects by name.

Templated on T where T has method name(). Applies to T and to shared_ptr<T>.

Constructor & Destructor Documentation

◆ NameFinder()

template<class T >
openstudio::NameFinder< T >::NameFinder ( const std::string & name,
bool caseSensitive = false )
inline

Member Function Documentation

◆ operator()() [1/2]

template<class T >
bool openstudio::NameFinder< T >::operator() ( const std::shared_ptr< T > & object) const
inline

◆ operator()() [2/2]

template<class T >
bool openstudio::NameFinder< T >::operator() ( const T & object) const
inline