Re: Project 2


[ Follow Ups ] [ Post Followup ] [ CS328 Message Board ] [ FAQ ]

Posted by tushka on July 12, 2001 at 14:12:20:

In Reply to: Project 2 posted by Joe on July 12, 2001 at 13:47:19:

Well, include in your workspace foo.h, baz.h, abstract_foohandler.h, map.h, AvlTree.h, foo.cpp, baz.cpp, abstract_foohandler.cpp, map.cpp and AvlTree.cpp.

I'm trying to get abstract_foohandler to work with the STL map. So I'm not dealing with AVl trees at all.

The idea is this:
1) the foo class should inherit from abstract_foohandler.
2) when you're creating an object, you need to check if you have enough space. If you don't - then return "FAILURE" if you do, return "SUCCESS"
3)he wants us to keep track of the number of references to the foo object.
4)depending on how frequently the object is accessed you should get rid of the object when you run out of space or find the least referenced object to delete.
5)VW suggests that you do not create any objects until they are actually accessed. (I have no idea, how to do that yet)
6)in function "remove_all" you should delete everything that is related to the given process_id. For example all those:
("A", 10, 0)
("A", 3, 5)
("A", .., ..)
("A", .., ..)

7)in function "remove_foo" you need to remove just one foo, for example ("A", 5, 1)

I know this is all to vague... But that's what I remember from the lectures.

Good luck,
Marina.




Follow Ups:



Post a Followup

Name:
E-Mail:

Subject:

Comments:

Optional Link URL:
Link Title:
Optional Image URL:


[ Follow Ups ] [ Post Followup ] [ CS328 Message Board ] [ FAQ ]