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