18 Namable(
const std::string &initial_name) :
27 set_name(
const std::string &name) {
45 return !_name.empty();
51 INLINE
const std::string &Namable::
66 INLINE std::ostream &operator << (std::ostream &out,
const Namable &n) {
74 INLINE
bool NamableOrderByName::
76 return (n1->get_name() < n2->get_name());
void clear_name()
Resets the Namable's name to empty.
void output(std::ostream &out) const
Outputs the Namable.
A base class for all things which can have a name.
bool has_name() const
Returns true if the Namable has a nonempty name set, false if the name is empty.