--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/src/simulator/event-id.cc Sun Sep 03 12:24:04 2006 +0200
@@ -0,0 +1,64 @@
+/* -*- Mode:C++; c-basic-offset:8; tab-width:8; indent-tabs-mode:t -*- */
+/*
+ * Copyright (c) 2005 INRIA
+ * All rights reserved.
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License version 2 as
+ * published by the Free Software Foundation;
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ *
+ * Author: Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
+ */
+#include "event-id.h"
+#include "simulator.h"
+
+namespace ns3 {
+
+EventId::EventId ()
+ : m_event_impl (0),
+ m_time (0),
+ m_uid (0)
+{}
+
+EventId::EventId (EventImpl *impl, uint64_t time, uint32_t uid)
+ : m_event_impl (impl),
+ m_time (time),
+ m_uid (uid)
+{}
+void
+EventId::cancel (void)
+{
+ Simulator::cancel (*this);
+}
+bool
+EventId::is_expired (void)
+{
+ return Simulator::is_expired (*this);
+}
+EventImpl *
+EventId::get_event_impl (void) const
+{
+ return m_event_impl;
+}
+uint64_t
+EventId::get_time (void) const
+{
+ return m_time;
+}
+uint32_t
+EventId::get_uid (void) const
+{
+ return m_uid;
+}
+
+
+}; // namespace ns3