src/OpenSimBindings/PlottableOutputSubfield.cpp
// create a constant-time lookup for an OpenSim::Output<T>'s available subfields
create a constant-time lookup for an OpenSim::Output's available subfields
create a constant - time lookup for an OpenSim :: Output ' s available subfields
static std::unordered_map<size_t, std::vector<osc::PlottableOutputSubfield>> createSubfieldLookup() {
        std::unordered_map<size_t, std::vector<osc::PlottableOutputSubfield>> rv;
        rv[typeid(OpenSim::Output<SimTK::Vec3>).hash_code()] = {
            subfield<Subfield_x, SimTK::Vec3>("x"),
            subfield<Subfield_y, SimTK::Vec3>("y"),
            subfield<Subfield_z, SimTK::Vec3>("z"),
            subfield<Subfield_mag, SimTK::Vec3>("magnitude"),
        };
        return rv;
    }
static std :: unordered_map < size_t , std :: vector < osc :: PlottableOutputSubfield > > createSubfieldLookup ( ) { std :: unordered_map < size_t , std :: vector < osc :: PlottableOutputSubfield > > rv ; rv [ typeid ( OpenSim :: Output < SimTK :: Vec3 > ) . hash_code ( ) ] = { subfield < Subfield_x , SimTK :: Vec3 > ( " " ) , subfield < Subfield_y , SimTK :: Vec3 > ( " " ) , subfield < Subfield_z , SimTK :: Vec3 > ( " " ) , subfield < Subfield_mag , SimTK :: Vec3 > ( " " ) , } ; return rv ; }
create a constant-time lookup for an OpenSim::Output<T>'s available subfields
create a constant - time lookup for an OpenSim :: Output<T > ' s available subfields
// SimTK::Vec3