visitor-pattern
Difference between visitor design pattern and depth first search?
A depth first search seem able to perform similar functions as the visitor design pattern.A visitor allows you to define some data structures and add operations on those structures (in the form of mul[详细]
2023-03-12 08:06 分类:问答User extendable visitor pattern in C#
Is it possible to create a user extendable visitor pattern in C#? (preferably .net 3.5) I have a set of classes in a library that I wish to add functionality to with the visitor pattern. The problem[详细]
2023-03-12 01:58 分类:问答Visitor Pattern versus LINQ-style fluent syntax for tree traversal API
I am considering refactoring an open source project, Afterthought, to make it more intuitive to use.The basic idea is that developers creating amendments in Afterthought will be amending a specific .N[详细]
2023-03-08 19:11 分类:问答How to find whether a member variable is used in a method using code in eclipse jdt?
I have to find all the methods in a class that use a particular member variable.(like \"References\" in eclipse but I want to implement using code...)I use AST visitor pattern that visits FieldDeclara[详细]
2023-03-06 17:11 分类:问答Visitor pattern using boost::bind & overloaded functions
I\'m trying to add a Visitor pattern to my code and want to keep this as general as possible. More specificly, I\'d like not having to hardcode the callback function into my accept function. So, as a[详细]
2023-03-06 03:20 分类:问答database ip visitor counter
this site is very helpful thanks for all who answering questions.. i need an ip visitor开发者_JAVA技巧 counter and save the number in a table in database for each page..is there is an already script[详细]
2023-03-01 01:07 分类:问答How to adapt a visitor interface to an iterator interface?
I\'m wondering whether there is a good design pattern or idiom to realize the following: You have an existing class that provides only a visitor interface, as follows[详细]
2023-02-21 12:08 分类:问答Tracking Sessions to folders in Content Drilldown for Google Analytics
We are using GA for our site which has a few thousand pages.I have been asked to find out the most popular content on our site which sounds easy until I get deeper into it.[详细]
2023-02-20 22:53 分类:问答C++ avoiding code duplication for const and non-const visitation
I have a class that should call a visitor method for every member variable. Something like this: class A{[详细]
2023-02-16 08:24 分类:问答Java (or bytecode) AST generators available so that I can run a couple of Visitors on top of its result?
I am looking for a tool that\'ll take either a .java source code file, or .class or .jar and parses it, generating an AST(abstract syntax tree), so I can play with it. I intend to create a couple of V[详细]
2023-02-14 20:30 分类:问答