 |
Belle II Software
release-05-01-25
|
12 #include <tracking/trackFindingCDC/utilities/Scalar.h>
21 namespace TrackFindingCDC {
25 class Named :
public ScalarToClass<T> {
29 using Super = ScalarToClass<T>;
36 Named(
const std::string& name, T t)
46 const T& otherT(other);
47 return getName() < other.getName() or (not(other.getName() <
getName()) and t < otherT);
57 void setName(
const std::string& name)
A mixin class to attach a name to an object.
bool operator<(const Named< T > &other) const
Comparison operator establishing an ordering considering the name and the object.
Named(const std::string &name, T t)
Constructor taking the name and the desired value.
void setName(const std::string &name)
Setter for the name of the object.
std::string m_name
Memory for the name.
ScalarToClass< T > Super
Type of the base class.
Abstract base class for different kinds of events.
std::string getName() const
Getter for the name.