19 #ifndef TORC_PHYSICAL_NAMED_HPP
20 #define TORC_PHYSICAL_NAMED_HPP
23 #include <boost/smart_ptr.hpp>
83 {
return inNamedPtr->getName() ==
mName; }
89 #endif // TORC_PHYSICAL_NAMED_HPP
NameComparator(const string &inName)
Constructor.
bool operator==(const Named &rhs) const
Equality operator.
std::string string
Imported type name.
string mName
The name of the object.
Named(const string &inName)
Constructor which must specify the object name.
Concept for any object that can be named.
boost::shared_ptr< Named > NamedSharedPtr
Shared pointer encapsulation of a Named object.
Comparator class to serve as a predicate when searching for names.
std::string string
Imported type name.
const string & getName(void) const
Returns the object name.
const string & mName
The name to compare against.
bool operator()(const Named &inNamed) const
Function operator taking a Named object.