src/core/model/ref-count-base.cc
author Tom Henderson <tomh@tomh.org>
Mon, 28 Sep 2015 20:27:25 -0700
changeset 11676 05ea1489e509
parent 11356 8589e611d657
permissions -rw-r--r--
bug 2184: Integer overflow in MacLow
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
10979
dfda54e1d825 add missing GPLs
Tom Henderson <tomh@tomh.org>
parents: 10968
diff changeset
     1
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
dfda54e1d825 add missing GPLs
Tom Henderson <tomh@tomh.org>
parents: 10968
diff changeset
     2
/*
dfda54e1d825 add missing GPLs
Tom Henderson <tomh@tomh.org>
parents: 10968
diff changeset
     3
 * Copyright (c) 2007 Georgia Tech Research Corporation
dfda54e1d825 add missing GPLs
Tom Henderson <tomh@tomh.org>
parents: 10968
diff changeset
     4
 *
dfda54e1d825 add missing GPLs
Tom Henderson <tomh@tomh.org>
parents: 10968
diff changeset
     5
 * This program is free software; you can redistribute it and/or modify
dfda54e1d825 add missing GPLs
Tom Henderson <tomh@tomh.org>
parents: 10968
diff changeset
     6
 * it under the terms of the GNU General Public License version 2 as
dfda54e1d825 add missing GPLs
Tom Henderson <tomh@tomh.org>
parents: 10968
diff changeset
     7
 * published by the Free Software Foundation;
dfda54e1d825 add missing GPLs
Tom Henderson <tomh@tomh.org>
parents: 10968
diff changeset
     8
 *
dfda54e1d825 add missing GPLs
Tom Henderson <tomh@tomh.org>
parents: 10968
diff changeset
     9
 * This program is distributed in the hope that it will be useful,
dfda54e1d825 add missing GPLs
Tom Henderson <tomh@tomh.org>
parents: 10968
diff changeset
    10
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
dfda54e1d825 add missing GPLs
Tom Henderson <tomh@tomh.org>
parents: 10968
diff changeset
    11
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
dfda54e1d825 add missing GPLs
Tom Henderson <tomh@tomh.org>
parents: 10968
diff changeset
    12
 * GNU General Public License for more details.
dfda54e1d825 add missing GPLs
Tom Henderson <tomh@tomh.org>
parents: 10968
diff changeset
    13
 *
dfda54e1d825 add missing GPLs
Tom Henderson <tomh@tomh.org>
parents: 10968
diff changeset
    14
 * You should have received a copy of the GNU General Public License
dfda54e1d825 add missing GPLs
Tom Henderson <tomh@tomh.org>
parents: 10968
diff changeset
    15
 * along with this program; if not, write to the Free Software
dfda54e1d825 add missing GPLs
Tom Henderson <tomh@tomh.org>
parents: 10968
diff changeset
    16
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
dfda54e1d825 add missing GPLs
Tom Henderson <tomh@tomh.org>
parents: 10968
diff changeset
    17
 *
dfda54e1d825 add missing GPLs
Tom Henderson <tomh@tomh.org>
parents: 10968
diff changeset
    18
 * Author:  George Riley <riley@ece.gatech.edu>
dfda54e1d825 add missing GPLs
Tom Henderson <tomh@tomh.org>
parents: 10968
diff changeset
    19
 * Adapted from original code in object.h by:
dfda54e1d825 add missing GPLs
Tom Henderson <tomh@tomh.org>
parents: 10968
diff changeset
    20
 * Authors: Gustavo Carneiro <gjcarneiro@gmail.com>,
dfda54e1d825 add missing GPLs
Tom Henderson <tomh@tomh.org>
parents: 10968
diff changeset
    21
 *          Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
dfda54e1d825 add missing GPLs
Tom Henderson <tomh@tomh.org>
parents: 10968
diff changeset
    22
 */
dfda54e1d825 add missing GPLs
Tom Henderson <tomh@tomh.org>
parents: 10968
diff changeset
    23
2775
03a23eb5f1e8 bug: 147. Add RefCountBase
George F. Riley<riley@ece.gatech.edu>
parents:
diff changeset
    24
#include "ref-count-base.h"
9134
7a750f032acd Clean up function logging of core module.
Maja Grubišić <maja.grubisic@live.com>
parents: 7169
diff changeset
    25
#include "log.h"
7a750f032acd Clean up function logging of core module.
Maja Grubišić <maja.grubisic@live.com>
parents: 7169
diff changeset
    26
11356
8589e611d657 Doxygen files.
Peter D. Barnes, Jr. <barnes26@llnl.gov>
parents: 10979
diff changeset
    27
/**
8589e611d657 Doxygen files.
Peter D. Barnes, Jr. <barnes26@llnl.gov>
parents: 10979
diff changeset
    28
 * \file
8589e611d657 Doxygen files.
Peter D. Barnes, Jr. <barnes26@llnl.gov>
parents: 10979
diff changeset
    29
 * \ingroup ptr
8589e611d657 Doxygen files.
Peter D. Barnes, Jr. <barnes26@llnl.gov>
parents: 10979
diff changeset
    30
 * (Deprecated) ns3::RefCountBase implementation.
8589e611d657 Doxygen files.
Peter D. Barnes, Jr. <barnes26@llnl.gov>
parents: 10979
diff changeset
    31
 */
8589e611d657 Doxygen files.
Peter D. Barnes, Jr. <barnes26@llnl.gov>
parents: 10979
diff changeset
    32
10968
2d29fee2b7b8 [Bug 1551] Redux: NS_LOG_COMPONENT_DEFINE inside or outside of ns3 namespace?
Peter D. Barnes, Jr. <barnes26@llnl.gov>
parents: 9134
diff changeset
    33
namespace ns3 {
2775
03a23eb5f1e8 bug: 147. Add RefCountBase
George F. Riley<riley@ece.gatech.edu>
parents:
diff changeset
    34
10968
2d29fee2b7b8 [Bug 1551] Redux: NS_LOG_COMPONENT_DEFINE inside or outside of ns3 namespace?
Peter D. Barnes, Jr. <barnes26@llnl.gov>
parents: 9134
diff changeset
    35
NS_LOG_COMPONENT_DEFINE ("RefCountBase");
2775
03a23eb5f1e8 bug: 147. Add RefCountBase
George F. Riley<riley@ece.gatech.edu>
parents:
diff changeset
    36
5505
c0ac392289c3 replace RefCountBase with SimpleRefCount<> to avoid duplicate refcounting implementations.
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 3395
diff changeset
    37
RefCountBase::~RefCountBase ()
7169
358f71a624d8 core coding style changes
Josh Pelkey <jpelkey@gatech.edu>
parents: 6821
diff changeset
    38
{
9134
7a750f032acd Clean up function logging of core module.
Maja Grubišić <maja.grubisic@live.com>
parents: 7169
diff changeset
    39
  NS_LOG_FUNCTION (this);
7169
358f71a624d8 core coding style changes
Josh Pelkey <jpelkey@gatech.edu>
parents: 6821
diff changeset
    40
}
3395
3b6bc7a4f975 avoid uneeded inline
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 2946
diff changeset
    41
2775
03a23eb5f1e8 bug: 147. Add RefCountBase
George F. Riley<riley@ece.gatech.edu>
parents:
diff changeset
    42
} // namespace ns3