Belle II Software light-2406-ragdoll
RelationIndexContainer< FROM, TO >::Element Struct Reference

Element type for the index. More...

#include <RelationIndexContainer.h>

Public Member Functions

 Element (RelationElement::index_type indexFrom_, RelationElement::index_type indexTo_, const FROM *from_, const TO *to_, RelationElement::weight_type weight_)
 Create a new element.
 

Public Attributes

RelationElement::index_type indexFrom
 index of the element from which the relation points.
 
RelationElement::index_type indexTo
 index of the element to which the relation points.
 
const FROM * from
 pointer of the element from which the relation points.
 
const TO * to
 pointer of the element to which the relation points.
 
RelationElement::weight_type weight
 weight of the relation.
 

Detailed Description

template<class FROM, class TO>
struct Belle2::RelationIndexContainer< FROM, TO >::Element

Element type for the index.

Definition at line 54 of file RelationIndexContainer.h.

Constructor & Destructor Documentation

◆ Element()

Element ( RelationElement::index_type  indexFrom_,
RelationElement::index_type  indexTo_,
const FROM *  from_,
const TO *  to_,
RelationElement::weight_type  weight_ 
)
inline

Create a new element.

Definition at line 57 of file RelationIndexContainer.h.

58 :
59 indexFrom(indexFrom_), indexTo(indexTo_), from(from_), to(to_), weight(weight_) {}
const FROM * from
pointer of the element from which the relation points.
const TO * to
pointer of the element to which the relation points.
RelationElement::index_type indexTo
index of the element to which the relation points.
RelationElement::index_type indexFrom
index of the element from which the relation points.
RelationElement::weight_type weight
weight of the relation.

Member Data Documentation

◆ from

const FROM* from

pointer of the element from which the relation points.

Definition at line 68 of file RelationIndexContainer.h.

◆ indexFrom

index of the element from which the relation points.

Definition at line 62 of file RelationIndexContainer.h.

◆ indexTo

index of the element to which the relation points.

Definition at line 65 of file RelationIndexContainer.h.

◆ to

const TO* to

pointer of the element to which the relation points.

Definition at line 71 of file RelationIndexContainer.h.

◆ weight

weight of the relation.

Definition at line 74 of file RelationIndexContainer.h.


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