0.2.0
Loading...
Searching...
No Matches
NodeRegistry.hpp File Reference

Utility class which specifies available nodes. More...

Go to the source code of this file.

Classes

struct  NAV::NodeRegistry::NodeInfo
 Holds information for registered nodes. More...
 
struct  NAV::NodeRegistry::PinInfo
 Holds info of the pins of registered nodes. More...
 

Functions

std::vector< std::string > NAV::NodeRegistry::GetParentNodeDataTypes (const std::string &type)
 Get the Parent Node Data Types of the specified Node Data Type.
 
bool NAV::NodeRegistry::NodeDataTypeAnyIsChildOf (const std::vector< std::string > &childTypes, const std::vector< std::string > &parentTypes)
 Checks if any of the provided child types is a child of any of the provided parent types.
 
const std::map< std::string, std::vector< NodeInfo > > & NAV::NodeRegistry::RegisteredNodes ()
 Reference to List of all registered Nodes.
 
void NAV::NodeRegistry::RegisterNodeDataTypes ()
 Register all available NodeData types for the program.
 
void NAV::NodeRegistry::RegisterNodeTypes ()
 Register all available Node types for the program.
 

Detailed Description

Utility class which specifies available nodes.

Author
T. Topp (topp@.nosp@m.ins..nosp@m.uni-s.nosp@m.tutt.nosp@m.gart..nosp@m.de)
Date
2020-12-20

Function Documentation

◆ GetParentNodeDataTypes()

std::vector< std::string > NAV::NodeRegistry::GetParentNodeDataTypes ( const std::string & type)

Get the Parent Node Data Types of the specified Node Data Type.

Parameters
[in]typeThe Child Node Data Type

◆ NodeDataTypeAnyIsChildOf()

bool NAV::NodeRegistry::NodeDataTypeAnyIsChildOf ( const std::vector< std::string > & childTypes,
const std::vector< std::string > & parentTypes )

Checks if any of the provided child types is a child of any of the provided parent types.

Parameters
[in]childTypesChild types to check parentship
[in]parentTypesParent types to check parentship
Returns
True if any of the child types is a child of any of the parent types