11 #include <framework/dataobjects/RelationElement.h>
13 #include <framework/logging/Logger.h>
20 RelationElement::RelationElement(
index_type from,
const std::vector<index_type>& to,
const std::vector<weight_type>& weights):
23 m_to(to.begin(), to.end()),
24 m_weights(weights.begin(), weights.end())
26 if (to.size() != weights.size()) {
27 B2FATAL(
"Index and weight vector sizes differ!");
31 TObject(), m_from(UINT_MAX), m_to(), m_weights()