![]() |
Belle II Software release-09-00-04
|
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.
|
private |
Type of the base class.
Definition at line 28 of file WithWeight.h.
|
inlineexplicit |
Also forward the copy constructor form the base class object.
Definition at line 35 of file WithWeight.h.
|
inline |
Constructor which may also initialise the weight to a desired value.
Definition at line 41 of file WithWeight.h.
|
inline |
|
inline |
Comparison operator establishing an ordering considering the pointer first and the weight second.
Definition at line 48 of file WithWeight.h.
|
inline |
Setter for the weight of the object.
Definition at line 64 of file WithWeight.h.
|
inline |
Mutable getter for the weight.
Definition at line 70 of file WithWeight.h.
|
private |
Memory for the weight.
Definition at line 77 of file WithWeight.h.