![]() |
ATLAS Offline Software
|
#include <NodeFeatureList.h>
Public Types | |
| using | Feature_t = std::shared_ptr< const NodeFeature > |
| using | Connector_t = std::shared_ptr< const NodeConnector > |
| using | Bucket_t = NodeFeature::Bucket_t |
Public Member Functions | |
| NodeFeatureList ()=default | |
| Empty standard constructor. More... | |
| bool | operator== (const NodeFeatureList &other) const |
| Returns true if the features have pairwise the same name. More... | |
| bool | isValid () const |
| Returns whether the NodeFeatureList is complete, i.e. More... | |
| size_t | numFeatures () const |
| Returns the number of features in the list. More... | |
| std::vector< std::string > | featureNames () const |
| Returns the name of the features in the list. More... | |
| void | fillInData (const Bucket_t &bucket, GraphRawData &graphData) const |
More... | |
| bool | addFeature (const std::string &featName, MsgStream &msg) |
| Tries to add a new feature to the list using the predefined list of features in the GraphFeatureFactory. More... | |
| bool | addFeature (const Feature_t &featPtr, MsgStream &msg) |
| Tries to add a particular feature to the list. More... | |
| bool | setConnector (const std::string &conName, MsgStream &msg) |
| Tries to set the graph connector based on the connector name. More... | |
| void | setConnector (const std::string &conName, NodeConnector::Evaluator_t evalFunc) |
| Sets the More... | |
Private Attributes | |
| std::vector< Feature_t > | m_features {} |
| Connector_t | m_connector {} |
Definition at line 14 of file NodeFeatureList.h.
Definition at line 20 of file NodeFeatureList.h.
| using MuonML::NodeFeatureList::Connector_t = std::shared_ptr<const NodeConnector> |
Definition at line 18 of file NodeFeatureList.h.
| using MuonML::NodeFeatureList::Feature_t = std::shared_ptr<const NodeFeature> |
Definition at line 17 of file NodeFeatureList.h.
|
default |
Empty standard constructor.
Tries to add a particular feature to the list.
| featPtr | Pointer to the instantiated feature |
| msg | Reference to the message stream object for logging. |
Definition at line 56 of file NodeFeatureList.cxx.
| bool MuonML::NodeFeatureList::addFeature | ( | const std::string & | featName, |
| MsgStream & | msg | ||
| ) |
Tries to add a new feature to the list using the predefined list of features in the GraphFeatureFactory.
| featName | Name of the feature in the factory |
| msg | Reference to the message stream object for logging. |
Definition at line 52 of file NodeFeatureList.cxx.
| std::vector< std::string > MuonML::NodeFeatureList::featureNames | ( | ) | const |
| void MuonML::NodeFeatureList::fillInData | ( | const Bucket_t & | bucket, |
| GraphRawData & | graphData | ||
| ) | const |
Fill the graph features
Connection i->j
Connection j-> i
Definition at line 75 of file NodeFeatureList.cxx.
| bool MuonML::NodeFeatureList::isValid | ( | ) | const |
Returns whether the NodeFeatureList is complete, i.e.
it must have at least one feature and the node connector
Definition at line 15 of file NodeFeatureList.cxx.
| size_t MuonML::NodeFeatureList::numFeatures | ( | ) | const |
Returns the number of features in the list.
Definition at line 40 of file NodeFeatureList.cxx.
| bool MuonML::NodeFeatureList::operator== | ( | const NodeFeatureList & | other | ) | const |
Returns true if the features have pairwise the same name.
Definition at line 26 of file NodeFeatureList.cxx.
| bool MuonML::NodeFeatureList::setConnector | ( | const std::string & | conName, |
| MsgStream & | msg | ||
| ) |
Tries to set the graph connector based on the connector name.
| conName | Name of the connector to extract from the factory |
| msg | Reference to the message stream object for logging. |
Definition at line 18 of file NodeFeatureList.cxx.
| void MuonML::NodeFeatureList::setConnector | ( | const std::string & | conName, |
| NodeConnector::Evaluator_t | evalFunc | ||
| ) |
Sets the
Definition at line 23 of file NodeFeatureList.cxx.
|
private |
Definition at line 57 of file NodeFeatureList.h.
|
private |
Definition at line 56 of file NodeFeatureList.h.
1.8.18