1/* 2 * Copyright (c) 2002-2005 The Regents of The University of Michigan 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions are 7 * met: redistributions of source code must retain the above copyright 8 * notice, this list of conditions and the following disclaimer; --- 53 unchanged lines hidden (view full) --- 62 std::string getCause() { return cause; } 63 int getCode() { return code; } 64 65 void process(); // process event 66 67 virtual const char *description(); 68}; 69 |
70class CountedDrainEvent : public SimLoopExitEvent |
71{ 72 private: |
73 // Count of how many objects have not yet drained |
74 int count; 75 public: |
76 CountedDrainEvent() |
77 : count(0) 78 { } 79 void process(); 80 81 void setCount(int _count) { count = _count; } 82 83 int getCount() { return count; } 84}; --- 59 unchanged lines hidden --- |