eventq: move EventQueue constructor to cc file

Also make copy constructor and assignment operator private.
This commit is contained in:
Nathan Binkert 2010-04-15 16:24:10 -07:00
parent c90ee27283
commit f7e6f19ada
2 changed files with 8 additions and 3 deletions

View file

@ -408,3 +408,7 @@ Event::dump() const
cprintf("Not Scheduled\n");
}
}
EventQueue::EventQueue(const string &n)
: objName(n), head(NULL)
{}

View file

@ -370,10 +370,11 @@ class EventQueue : public Serializable
void insert(Event *event);
void remove(Event *event);
EventQueue(const EventQueue &);
const EventQueue &operator=(const EventQueue &);
public:
EventQueue(const std::string &n)
: objName(n), head(NULL)
{}
EventQueue(const std::string &n);
virtual const std::string name() const { return objName; }