thepeg is hosted by Hepforge, IPPP Durham
ThePEG 2.3.0
Deleted.h
1// -*- C++ -*-
2//
3// Deleted.h is a part of ThePEG - Toolkit for HEP Event Generation
4// Copyright (C) 1999-2019 Leif Lonnblad
5//
6// ThePEG is licenced under version 3 of the GPL, see COPYING for details.
7// Please respect the MCnet academic guidelines, see GUIDELINES for details.
8//
9#ifndef ThePEG_Deleted_H
10#define ThePEG_Deleted_H
11// This is the declaration of the Deleted and DeletedBase classes.
12
14#include "InterfaceBase.h"
15
16namespace ThePEG {
17
45
46public:
47
62 DeletedBase(string newName, string newDescription, string newClassName,
63 const type_info & newTypeInfo)
64 : InterfaceBase(newName, newDescription, newClassName,
65 newTypeInfo, true, false) {
66 rank(-1.0e10);
67 }
68
75 virtual string
76 exec(InterfacedBase &ib, string action, string arguments) const
77 ;
78
83 virtual string doxygenType() const;
84
88 virtual string type() const;
89
90};
91
118template <class T>
119class Deleted: public DeletedBase {
120
121public:
122
132 Deleted(string newName, string newDescription)
133 : DeletedBase(newName, newDescription,
134 ClassTraits<T>::className(), typeid(T)) {}
135
136};
137
138}
139
140#endif /* ThePEG_Deleted_H */
This is the main config header file for ThePEG.
The DeletedBase and its templated Deleted sub-class defines an interface to a class derived from the ...
Definition: Deleted.h:44
virtual string type() const
Return a code for the type of this interface.
DeletedBase(string newName, string newDescription, string newClassName, const type_info &newTypeInfo)
Standard constructor.
Definition: Deleted.h:62
virtual string doxygenType() const
Return a string describing the type of interface to be included in the Doxygen documentation.
virtual string exec(InterfacedBase &ib, string action, string arguments) const
The general interface method overriding the one in InterfaceBase.
The DeletedBase and its templated Deleted sub-class defines an interface to a class derived from the ...
Definition: Deleted.h:119
Deleted(string newName, string newDescription)
Standard constructor.
Definition: Deleted.h:132
The InterfaceBase class defines a generic interface to any class derived from the InterfacedBase clas...
Definition: InterfaceBase.h:59
double rank() const
Get the rank for this interface.
string className() const
Return the class name for the class this interface is defined for.
InterfacedBase is the base class of all Interfaced objects to be handled by the BaseRepository class.
This is the main namespace within which all identifiers in ThePEG are declared.
Definition: FactoryBase.h:28
The default concrete implementation of ClassTraitsBase.
Definition: ClassTraits.h:134