From: blackh <gra...@li...> - 2003-08-27 21:09:01
|
blackh Wed Aug 27 03:25:32 2003 EDT Modified files: /grapevine/cpp Fact.h FactChangeMeme.h Meme.h Object.h Operation.h RuleBase.h RuleState.h Log: Performance improvements. Index: grapevine/cpp/RuleState.h diff -u grapevine/cpp/RuleState.h:1.3 grapevine/cpp/RuleState.h:1.4 --- grapevine/cpp/RuleState.h:1.3 Sat Jun 14 02:33:21 2003 +++ grapevine/cpp/RuleState.h Wed Aug 27 03:25:32 2003 @@ -1,4 +1,4 @@ -// $Id: RuleState.h,v 1.3 2003/06/14 09:33:21 rossta Exp $ +// $Id: RuleState.h,v 1.4 2003/08/27 10:25:32 blackh Exp $ #ifndef _RULESTATE_H_ #define _RULESTATE_H_ @@ -14,7 +14,7 @@ public: - class BoundList : public std::vector<bool> + class BoundList : public std::vector<bool, grapevine_allocator<bool> > { public: BoundList() @@ -22,7 +22,7 @@ } BoundList(const BoundList& other) - : std::vector<bool>(other) + : std::vector<bool, grapevine_allocator<bool> >(other) { } @@ -80,7 +80,7 @@ } }; - typedef std::vector<Object> SlotVector; + typedef std::vector<Object, grapevine_allocator<Object> > SlotVector; private: SlotVector variables; |