ThePEG is hosted by Hepforge, IPPP Durham
ThePEG  2.1.0
ThePEG::Named Class Reference

The Named class is a simple concrete base class to used by classes of objects with a name. More...

#include <Named.h>

Inheritance diagram for ThePEG::Named:

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 Namedoperator= (const Named &other)
 Assignment.
 
const string & name (const string &newName)
 Set new name.
 

Private Attributes

string theName
 The string containing the name.
 

Detailed Description

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.

Definition at line 24 of file Named.h.


The documentation for this class was generated from the following file: