|
Enzo
|
The sole owner of every node type the application knows about. More...
#include <NodeTypeTable.h>
Static Public Member Functions | |
| static const NodeType & | addNodeType (NodeType nodeType) |
| Takes ownership of a node type and returns the stored copy. | |
| static const NodeType * | getNodeType (const std::string &fullName) |
| Returns the type registered under a full name, such as "enzo::grid". | |
| static const NodeType & | requireNodeType (const std::string &fullName) |
| Returns the type registered under a full name, for callers that cannot go on without it. | |
| static const std::deque< NodeType > & | getData () |
| Returns every registered type, in the order they were added. | |
The sole owner of every node type the application knows about.
The nt::NodeLoader fills the table at startup and nodes hold references into it, so a type exists once no matter how many nodes are built from it. Entries are never removed, which is what keeps those references valid.
|
static |
Returns the type registered under a full name, such as "enzo::grid".
|
static |
Returns the type registered under a full name, for callers that cannot go on without it.