smgl 0.11.0
Structured Metadata Engine and Graph Objects Library
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
smgl::NodeDesc< T > Struct Template Reference

Source-token descriptor pairing a Node type with a serialization key. More...

#include <smgl/Node.hpp>

Collaboration diagram for smgl::NodeDesc< T >:
[legend]

Public Member Functions

 NodeDesc (std::string k)
 Construct a descriptor with an explicit serialization key.
 

Public Attributes

std::string key
 Registered serialization key (the source spelling of T)
 

Detailed Description

template<class T>
struct smgl::NodeDesc< T >

Source-token descriptor pairing a Node type with a serialization key.

Associates a Node type T with the registered serialization key used to reconstruct it during Graph::Load. Construct via the SMGL_NODE() macro, which captures the verbatim, as-written spelling of T as the key, and pass the result to RegisterNodes() / DeregisterNodes().

See also
SMGL_NODE

Definition at line 402 of file Node.hpp.

Constructor & Destructor Documentation

◆ NodeDesc()

template<class T >
smgl::NodeDesc< T >::NodeDesc ( std::string  k)
inlineexplicit

Construct a descriptor with an explicit serialization key.

Definition at line 404 of file Node.hpp.

Member Data Documentation

◆ key

template<class T >
std::string smgl::NodeDesc< T >::key

Registered serialization key (the source spelling of T)

Definition at line 406 of file Node.hpp.


The documentation for this struct was generated from the following file: