src/core/ref-count-base.cc
author Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
Sat, 04 Jul 2009 08:15:48 +0200
changeset 4654 2eaebe77d66b
parent 2946 14194a052b7d
permissions -rw-r--r--
Added tag ns-3.5 for changeset c975274c9707
riley@2775
     1
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
riley@2775
     2
/*
riley@2775
     3
 * Copyright (c) 2007 Georgia Tech Research Corporation
riley@2775
     4
 *
riley@2775
     5
 * This program is free software; you can redistribute it and/or modify
riley@2775
     6
 * it under the terms of the GNU General Public License version 2 as
riley@2775
     7
 * published by the Free Software Foundation;
riley@2775
     8
 *
riley@2775
     9
 * This program is distributed in the hope that it will be useful,
riley@2775
    10
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
riley@2775
    11
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
riley@2775
    12
 * GNU General Public License for more details.
riley@2775
    13
 *
riley@2775
    14
 * You should have received a copy of the GNU General Public License
riley@2775
    15
 * along with this program; if not, write to the Free Software
riley@2775
    16
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
riley@2775
    17
 *
riley@2775
    18
 * Author:  George Riley <riley@ece.gatech.edu>
riley@2775
    19
 * Adapted from original code in object.h by:
riley@2775
    20
 * Authors: Gustavo Carneiro <gjcarneiro@gmail.com>,
riley@2775
    21
 *          Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
riley@2775
    22
 */
riley@2775
    23
riley@2775
    24
#include "ref-count-base.h"
riley@2775
    25
riley@2775
    26
namespace ns3 {
riley@2775
    27
riley@2775
    28
RefCountBase::RefCountBase() 
riley@2775
    29
  : m_count (1) 
riley@2775
    30
{
riley@2775
    31
}
riley@2775
    32
mathieu@2946
    33
RefCountBase::RefCountBase (const RefCountBase &o)
mathieu@2946
    34
 : m_count (1)
mathieu@2946
    35
{}
mathieu@2946
    36
RefCountBase &
mathieu@2946
    37
RefCountBase::operator = (const RefCountBase &o)
mathieu@2946
    38
{
mathieu@2946
    39
  return *this;
mathieu@2946
    40
}
mathieu@2946
    41
riley@2775
    42
RefCountBase::~RefCountBase () 
riley@2775
    43
{
riley@2775
    44
}
riley@2775
    45
mathieu@3395
    46
uint32_t
mathieu@3395
    47
RefCountBase::GetReferenceCount (void) const
mathieu@3395
    48
{
mathieu@3395
    49
  return m_count;
mathieu@3395
    50
}
mathieu@3395
    51
riley@2775
    52
} // namespace ns3