Skip to main content
gamedev.net
🔒 Locked

Implementing Templated Design Patterns

Started by ddn3 Sep 4, 2003 at 11:02 AM 4 replies 500+ views
Original Post
ddn3
ddn3
Would it be possible to implement most of the design patterns in a form similar to STL, that is using metaprogramming technqiues? Design patterns have shown their worth, but the examples given are usually a bare bone framework, usefully only to highlight some concepts. Or there isn''t any code given at all but class diagrams or pseudo code. Is there a need for such a library? -ddn
TonyFish
TonyFish
There''s a few examples of just that on CodeProject I think.

<Fish>{
<Fish>{
Ali F
Ali F
I think there is a design patterns implementation that goes by the name of Loki. Its on sourceforge, search for it... or better yet...


...here
Shannon Barber
Shannon Barber
"Modern C++" by Andrei Alexandrescu describes such techniques. The Loki library goes on to implement the ideas in the book. It is indeed maintained on sourceforge, though we haven''t made a release in a long time.

Somewhat ironically, the components Andrei created to facilitate the DP meta-templates seem to be used much more than DP meta-templates are.

- Magmai Kai Holmlor

Not For Rent

[Look for information | GDNet Start Here | GDNet Search Tool | GDNet FAQ | MSDN RTF[L] | SGI STL Docs | STFW | Asking Smart Questions ]

[Free C++ Libraries | Boost | ACE | Loki | MTL | Blitz++ | wxWindows| Spirit(xBNF)]
[Free C Libraries | zlib ]

The trade-off between price and quality does not exist in Japan. Rather, the idea that high quality brings on cost reduction is widely accepted.-- Tajima & Matsubara
ddn3
ddn3
Thanks for the info. I''m looking at Loki right now. Its pretty good, but it only implements some of the design patterns. My last count there were over 20 fundemental patterns, and numerous sub patters and variants. Are there any intentions of implementing more design patterns?

-ddn
Shannon Barber
Shannon Barber
There are lots of intentions... :/
The trade-off between price and quality does not exist in Japan. Rather, the idea that high quality brings on cost reduction is widely accepted.-- Tajima & Matsubara

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.