Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create unordered map type #14

Open
bcthund opened this issue Sep 8, 2020 · 2 comments
Open

Create unordered map type #14

bcthund opened this issue Sep 8, 2020 · 2 comments
Milestone

Comments

@bcthund
Copy link
Owner

bcthund commented Sep 8, 2020

Using the t_VectorMap as a guide, create an unordered map version, to replace the current t_VectorMap for systems that don't require indexing or will be dynamic, as in having items removed. In a VectorMap removed items break the Map_si which maps a string name to a vector index. When an item is removed the map is no longer correct. So instead of reworking the Map_si to shift items, create the unordered map variation.

@bcthund bcthund added this to the Types milestone Sep 8, 2020
@bcthund
Copy link
Owner Author

bcthund commented Sep 8, 2020

  • Create base t_UMap type
  • Implements Methods
    • checkName("name")
    • setSource("source")
    • add("name")
    • remove("name")
    • get("name")
    • size()
  • Implement overloads
    • operator["name"]
    • operator[index]
    • operator()
  • Implement Begin and End for iteration

@bcthund
Copy link
Owner Author

bcthund commented Sep 8, 2020

Known systems to convert from VectorMap to UMap:

  • Animations
  • Particles
  • GUI Elements
    • ComboBox list
    • Pie Chart
    • Other
  • t_DataSet?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant