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

Change Shawn Facet Provider to use map #5

Open
gitbaum opened this issue Oct 12, 2011 · 0 comments
Open

Change Shawn Facet Provider to use map #5

gitbaum opened this issue Oct 12, 2011 · 0 comments

Comments

@gitbaum
Copy link
Contributor

gitbaum commented Oct 12, 2011

Instead of returning a new instance of a facet for each call, a facet should map to a certain processor. hence, facets should be stored in a map, and only created at the first call.

Code currently:

static Facet& get_facet( ShawnOs& os )
{
return *(new Facet(os));
}

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

No branches or pull requests

1 participant