We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
code maybe like this:
class JavaTypeVisitor; struct JavaType { // ... other fields virtual void accept(JavaTypeVisitor* visitor) = 0; }; struct JavaInt : public JavaType { virtual void accept(JavaTypeVisitor* visitor) override; }; struct JavaLong : public JavaType { virtual void accept(JavaTypeVisitor* visitor) override; }; struct JavaObject : public JavaType { virtual void accept(JavaTypeVisitor* visitor) override; }; // ... other JavaType struct definitions // visitor class JavaTypeVisitor { public: virtual void visit(JavaInt* ji) = 0; virtual void visit(JavaLong* jl) = 0; virtual void visit(JavaObject* jo) = 0; // ... visit other JavaTypes }; // region gc class GC { public: virtual void gc() = 0; protected: // ... some fields }; class CMS_GC : public GC, public JavaTypeVisitor { // ... some implementations }; class G1_GC : public GC, public JavaTypeVisitor { // ... some implementations }; // ... other GC Implementation, eg: zgc // endregion gc
The text was updated successfully, but these errors were encountered:
It looks good but may take some effort to do so..
Sorry, something went wrong.
No branches or pull requests
code maybe like this:
The text was updated successfully, but these errors were encountered: