equal
deleted
inserted
replaced
60 inline void Unref (void) const; |
60 inline void Unref (void) const; |
61 |
61 |
62 /** |
62 /** |
63 * Get the reference count of the object. Normally not needed; for language bindings. |
63 * Get the reference count of the object. Normally not needed; for language bindings. |
64 */ |
64 */ |
65 inline uint32_t GetReferenceCount (void) const; |
65 uint32_t GetReferenceCount (void) const; |
66 |
66 |
67 private: |
67 private: |
68 // Note we make this mutable so that the const methods can still |
68 // Note we make this mutable so that the const methods can still |
69 // change it. |
69 // change it. |
70 mutable uint32_t m_count; // Reference count |
70 mutable uint32_t m_count; // Reference count |
89 { // All references removed, ok to delete |
89 { // All references removed, ok to delete |
90 delete this; |
90 delete this; |
91 } |
91 } |
92 } |
92 } |
93 |
93 |
94 uint32_t |
|
95 RefCountBase::GetReferenceCount (void) const |
|
96 { |
|
97 return m_count; |
|
98 } |
|
99 |
|
100 } // namespace ns3 |
94 } // namespace ns3 |
101 |
95 |
102 #endif /* __REF_COUNT_BASE_H__*/ |
96 #endif /* __REF_COUNT_BASE_H__*/ |