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

Access to analyzers in a subclass of AnalyzerGroup #67

Open
alireza-hosseini opened this issue Aug 1, 2017 · 0 comments
Open

Access to analyzers in a subclass of AnalyzerGroup #67

alireza-hosseini opened this issue Aug 1, 2017 · 0 comments

Comments

@alireza-hosseini
Copy link

alireza-hosseini commented Aug 1, 2017

For an advanced usage of AnalyzerGroup class, I need to reimplement some of its public methods, but the big problem is reimplementing its virtual methods while I don't have access to the main class member which is std::vector<boost::shared_ptr<Analyzer> > analyzers_ doesn't really make sense and kind of impossible.
Is there any specific reason for defining analyzers_ as private and not protected (or a getter function for it)?
Currently, as a quick-fix, I reimplemented the addAnalyzer method and stored the analyzers in an additional std::vector<boost::weak_ptr<Analyzer>>.

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