21 Namable(
const string &initial_name) :
43 operator = (
const Namable &other) {
54 set_name(
const string &name) {
76 return !_name.empty();
84 INLINE
const string &Namable::
102 INLINE ostream &operator << (ostream &out,
const Namable &n) {
112 INLINE
bool NamableOrderByName::
114 return (n1->get_name() < n2->get_name());
void clear_name()
Resets the Namable's name to empty.
bool has_name() const
Returns true if the Namable has a nonempty name set, false if the name is empty.
A base class for all things which can have a name.
void output(ostream &out) const
Outputs the Namable.