Belle II Software  release-08-01-10
WithWeight< T > Class Template Reference

A mixin class to attach a weight to an object. More...

#include <WithWeight.h>

Inheritance diagram for WithWeight< T >:
Collaboration diagram for WithWeight< T >:

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.
 

Detailed Description

template<class T>
class Belle2::TrackFindingCDC::WithWeight< T >

A mixin class to attach a weight to an object.

Definition at line 24 of file WithWeight.h.


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