ATLAS Offline Software
Loading...
Searching...
No Matches
EventReco::GraphBase Class Referenceabstract

#include <GraphBase.h>

Inheritance diagram for EventReco::GraphBase:
Collaboration diagram for EventReco::GraphBase:

Public Member Functions

 GraphBase ()=default
virtual void addNode (const Features &attributes)=0
virtual void addEdge (int64_t source, int64_t target, const Features &attributes)=0
virtual void addGlobal (const Features &attributes)=0
Features getNodeFeats (std::size_t index) const
Features & getNodeFeats (std::size_t index)
Features getEdgeFeats (std::size_t index) const
Features getGlobalFeats () const
EdgeIndex getEdgeIndicesVector (std::size_t index) const
int64_t nNodes () const
int64_t nEdges () const
int64_t nGlobal () const

Protected Attributes

Global m_global
std::vector< Node > m_nodes
std::vector< Edge > m_edges
int64_t m_nNodes = 0
int64_t m_nEdges = 0

Detailed Description

Definition at line 65 of file GraphBase.h.

Constructor & Destructor Documentation

◆ GraphBase()

EventReco::GraphBase::GraphBase ( )
default

Member Function Documentation

◆ addEdge()

virtual void EventReco::GraphBase::addEdge ( int64_t source,
int64_t target,
const Features & attributes )
pure virtual

Implemented in EventReco::HyPERGraph.

◆ addGlobal()

virtual void EventReco::GraphBase::addGlobal ( const Features & attributes)
pure virtual

Implemented in EventReco::HyPERGraph.

◆ addNode()

virtual void EventReco::GraphBase::addNode ( const Features & attributes)
pure virtual

Implemented in EventReco::HyPERGraph.

◆ getEdgeFeats()

Features EventReco::GraphBase::getEdgeFeats ( std::size_t index) const
inline

Definition at line 80 of file GraphBase.h.

80 {
81 return m_edges[index].getFeatures();
82 };
std::vector< Edge > m_edges
Definition GraphBase.h:95
str index
Definition DeMoScan.py:362

◆ getEdgeIndicesVector()

EdgeIndex EventReco::GraphBase::getEdgeIndicesVector ( std::size_t index) const
inline

Definition at line 84 of file GraphBase.h.

84 {
85 return m_edges[index].getIndices();
86 };

◆ getGlobalFeats()

Features EventReco::GraphBase::getGlobalFeats ( ) const
inline

Definition at line 83 of file GraphBase.h.

83{ return m_global.getFeatures(); };

◆ getNodeFeats() [1/2]

Features & EventReco::GraphBase::getNodeFeats ( std::size_t index)
inline

Definition at line 77 of file GraphBase.h.

77 {
78 return m_nodes[index].getFeatures();
79 };
std::vector< Node > m_nodes
Definition GraphBase.h:94

◆ getNodeFeats() [2/2]

Features EventReco::GraphBase::getNodeFeats ( std::size_t index) const
inline

Definition at line 74 of file GraphBase.h.

74 {
75 return m_nodes[index].getFeatures();
76 };

◆ nEdges()

int64_t EventReco::GraphBase::nEdges ( ) const
inline

Definition at line 89 of file GraphBase.h.

89{ return m_nEdges; };

◆ nGlobal()

int64_t EventReco::GraphBase::nGlobal ( ) const
inline

Definition at line 90 of file GraphBase.h.

90{ return m_global.getFeatures().size(); };

◆ nNodes()

int64_t EventReco::GraphBase::nNodes ( ) const
inline

Definition at line 88 of file GraphBase.h.

88{ return m_nNodes; };

Member Data Documentation

◆ m_edges

std::vector<Edge> EventReco::GraphBase::m_edges
protected

Definition at line 95 of file GraphBase.h.

◆ m_global

Global EventReco::GraphBase::m_global
protected

Definition at line 93 of file GraphBase.h.

◆ m_nEdges

int64_t EventReco::GraphBase::m_nEdges = 0
protected

Definition at line 97 of file GraphBase.h.

◆ m_nNodes

int64_t EventReco::GraphBase::m_nNodes = 0
protected

Definition at line 96 of file GraphBase.h.

◆ m_nodes

std::vector<Node> EventReco::GraphBase::m_nodes
protected

Definition at line 94 of file GraphBase.h.


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