1/* 2 * Copyright (c) 2000-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; --- 563 unchanged lines hidden (view full) --- 572 public: 573 EventWrapper(T *obj, bool del = false, Priority p = Default_Pri) 574 : Event(p), object(obj) 575 { 576 if (del) 577 setFlags(AutoDelete); 578 } 579 |
580 EventWrapper(T &obj, bool del = false, Priority p = Default_Pri) 581 : Event(p), object(&obj) 582 { 583 if (del) 584 setFlags(AutoDelete); 585 } 586 |
587 void process() { (object->*F)(); } 588 589 const std::string 590 name() const 591 { 592 return object->name() + ".wrapped_event"; 593 } 594 595 const char *description() const { return "EventWrapped"; } 596}; 597#endif 598 599#endif // __SIM_EVENTQ_HH__ |