Latest: adam_28sep2006.plan
WOW, ok so I began coding today by refactoring some of the base classes a bit again. Then I moved onto beginning the implementation of the ResourceMangerService ( Which is a Framework Service ).
I got the basics down and turned to drawing up the specifics of what was needed for the base implementation ( There is A LOT for this one. ) One of the things I came to was the fact I would need a new look up table inside this service for various reasons. And that was the rub. My current look up table inside the Element Manager Service is implemented with a vector class. I knew I would have to refactor this to use a hash table at some point and now that I was in need of another look up table it made sense to come up with a permanent solution rather then rewriting tons of search functions when the table implementation changed later.
A quick Google search revealed that neither STD or STL contained a hash table implementation. Not really upset by this I set out to create my own templated HashTable class. So ya… It turns out while the concept of template classes is pretty simple, there are A LOT of implementation quarks with them.
I finished the initial code of the HashTable class and the HashTableChainNode class in under an hour, debugging took probably 30 minutes or so. ( I’m getting real good with an obscene amount of pointer usage ;) ) Then the instantiation and linking errors reared their ugly heads… and 6 hours later I sit before you a nearly broken man.
Yet a broken man with a working Hash Table implemented into his new Framework .
In other news, a few days ago I completed the first version of the Event struct and now have a keyboard triggered event poking a User object and that object responding to the event. Which is a pretty big step forward seeing as how this is an Event driven Framework.
So ya, the Framework is pretty much back where it started before I started coding today ( just with a nearly O( 1 ) look up implementation ;) ) which is always kind of demoralizing after so much coding. But handle look ups are the name of the game here. So the backbone of the Framework has been greatly strengthened.
And I now know C++ class templating pretty well.
Next: The ResourceManagerService ( and graphics! )
- Adam
I got the basics down and turned to drawing up the specifics of what was needed for the base implementation ( There is A LOT for this one. ) One of the things I came to was the fact I would need a new look up table inside this service for various reasons. And that was the rub. My current look up table inside the Element Manager Service is implemented with a vector class. I knew I would have to refactor this to use a hash table at some point and now that I was in need of another look up table it made sense to come up with a permanent solution rather then rewriting tons of search functions when the table implementation changed later.
A quick Google search revealed that neither STD or STL contained a hash table implementation. Not really upset by this I set out to create my own templated HashTable class. So ya… It turns out while the concept of template classes is pretty simple, there are A LOT of implementation quarks with them.
I finished the initial code of the HashTable class and the HashTableChainNode class in under an hour, debugging took probably 30 minutes or so. ( I’m getting real good with an obscene amount of pointer usage ;) ) Then the instantiation and linking errors reared their ugly heads… and 6 hours later I sit before you a nearly broken man.
Yet a broken man with a working Hash Table implemented into his new Framework .
In other news, a few days ago I completed the first version of the Event struct and now have a keyboard triggered event poking a User object and that object responding to the event. Which is a pretty big step forward seeing as how this is an Event driven Framework.
So ya, the Framework is pretty much back where it started before I started coding today ( just with a nearly O( 1 ) look up implementation ;) ) which is always kind of demoralizing after so much coding. But handle look ups are the name of the game here. So the backbone of the Framework has been greatly strengthened.
And I now know C++ class templating pretty well.
Next: The ResourceManagerService ( and graphics! )
- Adam
Post a Comment
.plan Archive
.plan rss
adam_23feb2010.plan
adam_25sep2009.plan
adam_03may2009.plan
adam_07may2008.plan
adam_20nov2007.plan
adam_02nov2007.plan
adam_12oct2007.plan
adam_03oct2007.plan
adam_26sep2007.plan
adam_31jul2007.plan
adam_17jul2007.plan
adam_05jul2007.plan
adam_31may2007.plan
adam_16may2007.plan
adam_01may2007.plan
adam_28apr2007.plan
adam_11apr2007.plan
adam_08apr2007.plan
adam_03apr2007.plan
adam_31mar2007.plan
adam_29mar2007.plan
adam_29mar2007.plan
adam_26mar2007.plan
adam_04mar2007.plan
adam_27feb2007.plan
adam_08feb2007.plan
adam_02feb2007.plan
adam_01feb2007.plan
adam_28jan2007.plan
adam_27jan2007.plan
adam_26jan2007.plan
adam_22jan2007.plan
adam_18jan2007.plan
adam_06jan2007.plan
adam_28dec2006.plan
adam_22dec2006.plan
adam_17dec2006.plan
adam_14dec2006.plan
adam_28nov2006.plan
adam_26nov2006.plan
adam_24nov2006.plan
adam_11nov2006.plan
adam_02nov2006.plan
adam_31oct2006.plan
adam_25oct2006.plan
adam_19oct2006.plan
adam_16oct2006.plan
adam_09oct2006.plan
adam_28sep2006.plan
adam_24sep2006.plan
adam_21sep2006.plan
adam_23feb2010.plan
adam_25sep2009.plan
adam_03may2009.plan
adam_07may2008.plan
adam_20nov2007.plan
adam_02nov2007.plan
adam_12oct2007.plan
adam_03oct2007.plan
adam_26sep2007.plan
adam_31jul2007.plan
adam_17jul2007.plan
adam_05jul2007.plan
adam_31may2007.plan
adam_16may2007.plan
adam_01may2007.plan
adam_28apr2007.plan
adam_11apr2007.plan
adam_08apr2007.plan
adam_03apr2007.plan
adam_31mar2007.plan
adam_29mar2007.plan
adam_29mar2007.plan
adam_26mar2007.plan
adam_04mar2007.plan
adam_27feb2007.plan
adam_08feb2007.plan
adam_02feb2007.plan
adam_01feb2007.plan
adam_28jan2007.plan
adam_27jan2007.plan
adam_26jan2007.plan
adam_22jan2007.plan
adam_18jan2007.plan
adam_06jan2007.plan
adam_28dec2006.plan
adam_22dec2006.plan
adam_17dec2006.plan
adam_14dec2006.plan
adam_28nov2006.plan
adam_26nov2006.plan
adam_24nov2006.plan
adam_11nov2006.plan
adam_02nov2006.plan
adam_31oct2006.plan
adam_25oct2006.plan
adam_19oct2006.plan
adam_16oct2006.plan
adam_09oct2006.plan
adam_28sep2006.plan
adam_24sep2006.plan
adam_21sep2006.plan