Node factory.
More...
#include <NodeFactory.h>
|
typedef Node *(* | creatorFn) () |
|
Node factory.
Class used to create node inside a NetworkManager. Every new node type must be registered in this factory.
◆ createNode() [1/2]
template<class T >
T * AtomsGraph::NodeFactory::createNode |
( |
const std::string & |
typeName | ) |
|
Creates a new node.
- Parameters
-
◆ createNode() [2/2]
Node* AtomsGraph::NodeFactory::createNode |
( |
const std::string & |
typeName | ) |
|
Creates a new node.
- Parameters
-
◆ deregisterNode()
void AtomsGraph::NodeFactory::deregisterNode |
( |
const std::string & |
name | ) |
|
Deregisters a node type.
- Parameters
-
◆ registerNode()
void AtomsGraph::NodeFactory::registerNode |
( |
const std::string & |
name, |
|
|
creatorFn |
funct |
|
) |
| |
Registers a node type.
- Parameters
-
name | Node type name |
funct | Node create function |
The documentation for this class was generated from the following files: