 |
Belle II Software
release-05-02-19
|
32 template<
typename EntryType,
typename MetaInfoType>
64 void addOuterNode(DirectedNode<EntryType, MetaInfoType>& newNode)
100 DirectedNode<EntryType, MetaInfoType>*
getPtr() {
return this; }
120 std::vector<DirectedNode<EntryType, MetaInfoType>*>
m_outerNodes;
132 template <
class EntryType,
class MetaInfoType>
135 return (a == b.getConstEntry());
std::vector< DirectedNode< EntryType, MetaInfoType > * > & getInnerNodes()
************************* PUBLIC MEMBER FUNCTIONS *************************
EntryType & m_entry
************************* DATA MEMBERS *************************
void addOuterNode(DirectedNode< EntryType, MetaInfoType > &newNode)
Adds new links to the outward direction.
DirectedNode & operator=(const DirectedNode &node)=delete
Forbid assignment operator.
bool operator==(const DecayNode &node1, const DecayNode &node2)
Compare two Decay Nodes: They are equal if All daughter decay nodes are equal or one of the daughter ...
MetaInfoType m_metaInfo
Contains a MetaInfo for doing extra-stuff (whatever you need)
friend class DirectedNodeNetwork
Only the DirectedNodeNetwork can create DirectedNodes and link them.
std::vector< DirectedNode< EntryType, MetaInfoType > * > & getOuterNodes()
Returns links to all outer nodes attached to this one.
std::vector< DirectedNode< EntryType, MetaInfoType > * > m_innerNodes
Carries all links to inner nodes.
DirectedNode(EntryType &entry)
************************* CONSTRUCTORS *************************
Abstract base class for different kinds of events.
MetaInfoType & getMetaInfo()
Returns reference to MetaInfoType attached to this node.
DirectedNode< EntryType, MetaInfoType > * getPtr()
Returns Pointer to this node.
void setFamily(short family)
Assign a family identifier to this cell.
short getFamily() const
Returns identifier of this cell.
const EntryType & getConstEntry() const
Allows const access to stored entry (needed for external operator overload.
bool operator==(const DirectedNode &b) const
************************* OPERATORS *************************
bool operator!=(const DirectedNode &b) const
!= -operator - compares if two nodes are not identical
short m_family
Identifier for all connected nodes.
EntryType & getEntry()
Allows access to stored entry.
std::vector< DirectedNode< EntryType, MetaInfoType > * > m_outerNodes
Carries all links to outer nodes.
void addInnerNode(DirectedNode< EntryType, MetaInfoType > &newNode)
************************* INTERNAL MEMBER FUNCTIONS *************************