src/internet/model/sfq-queue.h
changeset 10864 3cd16e3b0974
parent 10863 0b0cbb284706
--- a/src/internet/model/sfq-queue.h	Wed Aug 27 14:39:08 2014 -0500
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,81 +0,0 @@
-/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
-/*
- * Copyright (c) 2007 University of Washington
- *
- * 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
- */
-
-#ifndef SFQ_H
-#define SFQ_H
-
-#include <queue>
-#include "ns3/packet.h"
-#include "ns3/queue.h"
-#include <map>
-#include "ns3/red-queue.h"
-#include "ns3/random-variable.h"
-
-namespace ns3 {
-
-class TraceContainer;
-
-class SfqSlot : public SimpleRefCount<SfqSlot> {
-public:
-  // static TypeId GetTypeId (void);
-  SfqSlot ();
-
-  virtual ~SfqSlot();
-
-  Ptr<RedQueue> q;
-  int allot;
-  unsigned int backlog;
-  int h;
-  bool active;
-};
-
-/**
- * \ingroup queue
- */
-class SfqQueue : public Queue {
-public:
-  static TypeId GetTypeId (void);
-  /**
-   * \brief SfqQueue Constructor
-   */
-  SfqQueue ();
-
-  virtual ~SfqQueue();
-
-private:
-  virtual bool DoEnqueue (Ptr<Packet> p);
-  virtual Ptr<Packet> DoDequeue (void);
-  virtual Ptr<const Packet> DoPeek (void) const;
-
-  std::size_t hash(Ptr<Packet> p);
-  // only mutable so we can get a reference out of here in Peek()
-  mutable std::map<int, Ptr<SfqSlot> > m_ht;
-  mutable std::list<Ptr<SfqSlot> > m_flows;
-  uint32_t m_divisor;
-  uint32_t m_buckets;
-  uint32_t m_peturbInterval;
-  bool m_headmode;
-  mutable size_t pcounter;
-  UniformVariable psource;
-  mutable uint32_t peturbation;
-  uint32_t m_quantum;
-};
-
-} // namespace ns3
-
-#endif /* SFQ_H */