vg
tools for working with variation graphs
Public Attributes | List of all members
vg::io::Registry::Tables Struct Reference

Public Attributes

unordered_map< string, type_index > tag_to_protobuf
 Maps from tag string to Protobuf type type_index that it indicates, if any. More...
 
unordered_map< type_index, string > protobuf_to_tag
 Maps from Protobuf type type_index back to string tag. More...
 
unordered_map< string, unordered_map< type_index, load_function_t > > tag_to_loader
 
unordered_map< type_index, pair< string, save_function_t > > type_to_saver
 Maps from type to a single tag and save function pair to use when outputting that type. More...
 
unordered_map< type_index, vector< pair< bare_load_function_with_filename_t, function< bool(istream &)> > > > type_to_bare_loaders
 

Detailed Description

Holds the actual singleton registry tables.

Member Data Documentation

◆ protobuf_to_tag

unordered_map<type_index, string> vg::io::Registry::Tables::protobuf_to_tag

Maps from Protobuf type type_index back to string tag.

◆ tag_to_loader

unordered_map<string, unordered_map<type_index, load_function_t> > vg::io::Registry::Tables::tag_to_loader

Maps from tag to a map from type_index we want to load to a loading function that can load it from data with that tag.

◆ tag_to_protobuf

unordered_map<string, type_index> vg::io::Registry::Tables::tag_to_protobuf

Maps from tag string to Protobuf type type_index that it indicates, if any.

◆ type_to_bare_loaders

unordered_map<type_index, vector<pair<bare_load_function_with_filename_t, function<bool(istream&)> > > > vg::io::Registry::Tables::type_to_bare_loaders

Maps from type_index we want to load from a old, non-tagged-message-format file to a list of "bare" loaders that can load the desired thing from an istream, and their possibly empty required-prefix-sniffer-functions.

◆ type_to_saver

unordered_map<type_index, pair<string, save_function_t> > vg::io::Registry::Tables::type_to_saver

Maps from type to a single tag and save function pair to use when outputting that type.


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