Named
class is a simple concrete base class to used by classes of objects with a name.
More...
#include <Named.h>
Public Member Functions | |
Named (const string &newName=string()) | |
Constructor with name. | |
const string & | name () const |
Return name. | |
bool | operator== (const Named &other) const |
Test for equality. | |
bool | operator< (const Named &other) const |
Lexicographical comparison. | |
Protected Member Functions | |
const Named & | operator= (const Named &other) |
Assignment. | |
const string & | name (const string &newName) |
Set new name. | |
Private Attributes | |
string | theName |
The string containing the name. |
Named
class is a simple concrete base class to used by classes of objects with a name.
It just defines a string member variable with corresponding (protected) set and get functions.
Definition at line 24 of file Named.h.