src/contrib/flow-monitor/flow-classifier.cc
author Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
Thu Nov 12 13:01:01 2009 +0100 (2009-11-12)
changeset 5505 c0ac392289c3
parent 5205 673aae891b2b
permissions -rw-r--r--
replace RefCountBase with SimpleRefCount<> to avoid duplicate refcounting implementations.
gjc@5205
     1
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
gjc@5205
     2
//
gjc@5205
     3
// Copyright (c) 2009 INESC Porto
gjc@5205
     4
//
gjc@5205
     5
// This program is free software; you can redistribute it and/or modify
gjc@5205
     6
// it under the terms of the GNU General Public License version 2 as
gjc@5205
     7
// published by the Free Software Foundation;
gjc@5205
     8
//
gjc@5205
     9
// This program is distributed in the hope that it will be useful,
gjc@5205
    10
// but WITHOUT ANY WARRANTY; without even the implied warranty of
gjc@5205
    11
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
gjc@5205
    12
// GNU General Public License for more details.
gjc@5205
    13
//
gjc@5205
    14
// You should have received a copy of the GNU General Public License
gjc@5205
    15
// along with this program; if not, write to the Free Software
gjc@5205
    16
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
gjc@5205
    17
//
gjc@5205
    18
// Author: Gustavo J. A. M. Carneiro  <gjc@inescporto.pt> <gjcarneiro@gmail.com>
gjc@5205
    19
//
gjc@5205
    20
gjc@5205
    21
#include "flow-classifier.h"
gjc@5205
    22
gjc@5205
    23
namespace ns3 {
gjc@5205
    24
gjc@5205
    25
FlowClassifier::FlowClassifier ()
gjc@5205
    26
  :
gjc@5205
    27
  m_lastNewFlowId (0)  
gjc@5205
    28
{
gjc@5205
    29
}
gjc@5205
    30
mathieu@5505
    31
FlowClassifier::~FlowClassifier ()
mathieu@5505
    32
{}
gjc@5205
    33
gjc@5205
    34
FlowId
gjc@5205
    35
FlowClassifier::GetNewFlowId ()
gjc@5205
    36
{
gjc@5205
    37
  return ++m_lastNewFlowId;
gjc@5205
    38
}
gjc@5205
    39
gjc@5205
    40
gjc@5205
    41
} // namespace ns3
gjc@5205
    42