OLD | NEW |
1 /* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */ | 1 /* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */ |
2 /* | 2 /* |
3 * Copyright (c) 2007 Georgia Tech Research Corporation | 3 * Copyright (c) 2007 Georgia Tech Research Corporation |
4 * | 4 * |
5 * This program is free software; you can redistribute it and/or modify | 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 | 6 * it under the terms of the GNU General Public License version 2 as |
7 * published by the Free Software Foundation; | 7 * published by the Free Software Foundation; |
8 * | 8 * |
9 * This program is distributed in the hope that it will be useful, | 9 * This program is distributed in the hope that it will be useful, |
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | 11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
12 * GNU General Public License for more details. | 12 * GNU General Public License for more details. |
13 * | 13 * |
14 * You should have received a copy of the GNU General Public License | 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 | 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 | 16 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
17 * | 17 * |
18 * Author: George Riley <riley@ece.gatech.edu> | 18 * Author: George Riley <riley@ece.gatech.edu> |
19 * Adapted from original code in object.h by: | 19 * Adapted from original code in object.h by: |
20 * Authors: Gustavo Carneiro <gjcarneiro@gmail.com>, | 20 * Authors: Gustavo Carneiro <gjcarneiro@gmail.com>, |
21 * Mathieu Lacage <mathieu.lacage@sophia.inria.fr> | 21 * Mathieu Lacage <mathieu.lacage@sophia.inria.fr> |
22 */ | 22 */ |
23 #ifndef REF_COUNT_BASE_H | 23 #ifndef REF_COUNT_BASE_H |
24 #define REF_COUNT_BASE_H | 24 #define REF_COUNT_BASE_H |
25 | 25 |
26 #include "simple-ref-count.h" | 26 #include "simple-ref-count.h" |
27 | 27 |
| 28 #include "ns3/ns3-module.h" |
| 29 #define NS3_MODULE NS3_CORE_MODULE |
| 30 #include "ns3/ns3-export.h" |
| 31 |
28 /** | 32 /** |
29 * \file | 33 * \file |
30 * \ingroup ptr | 34 * \ingroup ptr |
31 * ns3::RefCountBase declaration. | 35 * ns3::RefCountBase declaration. |
32 * \deprecated See \ref ns3::SimpleRefCount | 36 * \deprecated See \ref ns3::SimpleRefCount |
33 */ | 37 */ |
34 | 38 |
35 namespace ns3 { | 39 namespace ns3 { |
36 | 40 |
37 /** | 41 /** |
38 * \brief A deprecated way to get reference-counting powers | 42 * \brief A deprecated way to get reference-counting powers |
39 * | 43 * |
40 * \deprecated | 44 * \deprecated |
41 * Users who wish to use reference counting for a class of their own should use | 45 * Users who wish to use reference counting for a class of their own should use |
42 * instead the template \ref ns3::SimpleRefCount. This class is maintained | 46 * instead the template \ref ns3::SimpleRefCount. This class is maintained |
43 * purely for compatibility to avoid breaking the code of users. | 47 * purely for compatibility to avoid breaking the code of users. |
44 */ | 48 */ |
45 class RefCountBase : public SimpleRefCount<RefCountBase> | 49 class NS3_EXPORT RefCountBase : public SimpleRefCount<RefCountBase> |
46 {· | 50 {· |
47 public: | 51 public: |
48 /** | 52 /** |
49 * This only thing this class does it declare a virtual destructor | 53 * This only thing this class does it declare a virtual destructor |
50 */ | 54 */ |
51 virtual ~RefCountBase (); | 55 virtual ~RefCountBase (); |
52 }; | 56 }; |
53 | 57 |
54 } // namespace ns3 | 58 } // namespace ns3 |
55 | 59 |
56 #endif /* REF_COUNT_BASE_H */ | 60 #endif /* REF_COUNT_BASE_H */ |
OLD | NEW |