The 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. | |
Named (const Named &)=default | |
Explicit default copy-constructor (too avoid compiler warnings) | |
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. | |
The 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.
|
inline |
|
inline |
Return name.
Definition at line 42 of file Named.h.
References theName.
Referenced by ThePEG::AbstractClassDescription< T >::create(), ThePEG::AbstractNoPIOClassDescription< T >::create(), ThePEG::InterfacedBase::fullName(), ThePEG::InterfacedBase::name(), ThePEG::TypeInfo::name(), operator<(), operator=(), operator==(), ThePEG::InterfacedBase::path(), and ThePEG::SwitchBase::registerOption().
|
inlineprotected |
|
inline |
|
inline |
|
private |
The string containing the name.
Definition at line 81 of file Named.h.
Referenced by name(), operator<(), operator=(), and operator==().