0.3.0
Loading...
Searching...
No Matches
NAV::NodeRegistry Namespace Reference

Data Structures

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

Functions

std::shared_ptr< NodeDataCopyNodeData (const std::shared_ptr< const NodeData > &nodeData)
 Creates a copy of the data.
 
std::vector< std::string > GetParentNodeDataTypes (const std::string &type)
 Get the Parent Node Data Types of the specified Node Data Type.
 
std::vector< std::string > GetStaticDataDescriptors (const std::vector< std::string > &dataIdentifier)
 Returns a vector of data descriptors for the pin data identifiers.
 
bool 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 > > & RegisteredNodes ()
 Reference to List of all registered Nodes.
 
void RegisterNodeDataTypes ()
 Register all available NodeData types for the program.
 
void RegisterNodeTypes ()
 Register all available Node types for the program.
 
bool TypeHasDynamicData (const std::string &type)
 Wether the specified Node Data Type can have dynamic data.
 

Function Documentation

◆ CopyNodeData()

std::shared_ptr< NAV::NodeData > NAV::NodeRegistry::CopyNodeData ( const std::shared_ptr< const NodeData > & nodeData)

Creates a copy of the data.

Parameters
nodeDataNode data to copy
Returns
Copied data

Definition at line 421 of file NodeRegistry.cpp.

◆ 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

Definition at line 142 of file NodeRegistry.cpp.

◆ GetStaticDataDescriptors()

std::vector< std::string > NAV::NodeRegistry::GetStaticDataDescriptors ( const std::vector< std::string > & dataIdentifier)

Returns a vector of data descriptors for the pin data identifiers.

Parameters
dataIdentifierList of data identifiers
Returns
List of data descriptors

Definition at line 378 of file NodeRegistry.cpp.

◆ 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

Definition at line 113 of file NodeRegistry.cpp.

◆ RegisteredNodes()

const std::map< std::string, std::vector< NAV::NodeRegistry::NodeInfo > > & NAV::NodeRegistry::RegisteredNodes ( )

Reference to List of all registered Nodes.

Definition at line 108 of file NodeRegistry.cpp.

◆ RegisterNodeDataTypes()

void NAV::NodeRegistry::RegisterNodeDataTypes ( )

Register all available NodeData types for the program.

Definition at line 346 of file NodeRegistry.cpp.

◆ RegisterNodeTypes()

void NAV::NodeRegistry::RegisterNodeTypes ( )

Register all available Node types for the program.

Definition at line 241 of file NodeRegistry.cpp.

◆ TypeHasDynamicData()

bool NAV::NodeRegistry::TypeHasDynamicData ( const std::string & type)

Wether the specified Node Data Type can have dynamic data.

Parameters
[in]typeThe Child Node Data Type

Definition at line 412 of file NodeRegistry.cpp.