-
Recent Posts
Recent Comments
Archives
Categories
Meta
Monthly Archives: November 2008
stl wrapper for maya container classes
In the Maya SDK array container classes has got an entirely different interface compared to the stl conatiner classes. They dont expose any iterator interface. Consequently we cannot use the data contained in them in stl or generic algorithms. So we have come up with a templatized wrapper class MArray_stl. Continue reading
A generic DAG walk algorithm
This is an example of a simple walk through a dag data structure, written in the paradigm of generic programming. Since a tree is always a dag, this can be easily applied to a tree walk, with or without further simplification.
The contribution of this implementation here is two unrelated functionalities.
— Using generic programming, split data structure and algorithm, there by promoting code re-use
— Expose the api to preserve user defined stackable information during the walk, through program stack and recursion Continue reading
Posted in c++
Tagged c++, cplusplus, data structure, generic programming, iterator, Linkedin, software engineering, stl
Leave a comment