thepeg is hosted by Hepforge, IPPP Durham
ThePEG 2.3.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.
 
 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 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.

Constructor & Destructor Documentation

◆ Named()

ThePEG::Named::Named ( const string &  newName = string())
inline

Constructor with name.

Definition at line 31 of file Named.h.

Member Function Documentation

◆ name() [1/2]

◆ name() [2/2]

const string & ThePEG::Named::name ( const string &  newName)
inlineprotected

Set new name.

Definition at line 72 of file Named.h.

References theName.

◆ operator<()

bool ThePEG::Named::operator< ( const Named other) const
inline

Lexicographical comparison.

Definition at line 54 of file Named.h.

References name(), and theName.

◆ operator=()

const Named & ThePEG::Named::operator= ( const Named other)
inlineprotected

Assignment.

Definition at line 63 of file Named.h.

References name(), and theName.

◆ operator==()

bool ThePEG::Named::operator== ( const Named other) const
inline

Test for equality.

Definition at line 47 of file Named.h.

References name(), and theName.

Member Data Documentation

◆ theName

string ThePEG::Named::theName
private

The string containing the name.

Definition at line 81 of file Named.h.

Referenced by name(), operator<(), operator=(), and operator==().


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