eventq.hh (7063:c0ea4df1ddab) eventq.hh (7066:5389824adf3d)
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
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
580 void process() { (object->*F)(); }
581
582 const std::string
583 name() const
584 {
585 return object->name() + ".wrapped_event";
586 }
587
588 const char *description() const { return "EventWrapped"; }
589};
590#endif
591
592#endif // __SIM_EVENTQ_HH__
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__