Belle II Software
release-08-01-10
|
A mixin class to attach a weight to an object. More...
#include <WithWeight.h>
Public Member Functions | |
WithWeight (const T &t) | |
Also forward the copy constructor form the base class object. | |
WithWeight (const T &t, Weight weight) | |
Constructor which may also initialise the weight to a desired value. | |
bool | operator< (const WithWeight< T > &other) const |
Comparison operator establishing an ordering considering the pointer first and the weight second. | |
Weight | getWeight () const |
Getter for the weight. | |
void | setWeight (Weight weight) |
Setter for the weight of the object. | |
Weight & | weight () |
Mutable getter for the weight. | |
Private Types | |
using | Super = ScalarToClass< T > |
Type of the base class. | |
Private Attributes | |
Weight | m_weight = 0 |
Memory for the weight. | |
A mixin class to attach a weight to an object.
Definition at line 24 of file WithWeight.h.