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

#include <Finder.hpp>

Public Member Functions

 NameFinder (const std::string &name, bool caseSensitive=false)
 
bool operator() (const T &object) const
 
bool operator() (const std::shared_ptr< 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

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

Member Function Documentation

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