Nebula
Toggle main menu visibility
Loading...
Searching...
No Matches
refcountedlist.h
Go to the documentation of this file.
1
#pragma once
2
//------------------------------------------------------------------------------
14
#include "
core/types.h
"
15
#include "
util/list.h
"
16
#include "
util/string.h
"
17
18
//------------------------------------------------------------------------------
19
namespace
Core
20
{
21
class
RefCounted
;
22
23
class
RefCountedList
:
public
Util::List
<RefCounted*>
24
{
25
public
:
27
void
DumpLeaks
();
29
void
SetDebugName
(
RefCounted
* ptr,
const
Util::String
& name);
30
private
:
31
Util::Dictionary<RefCounted*, Util::String>
refcountedDebugNames
;
32
};
33
34
}
35
//------------------------------------------------------------------------------
Core::RefCounted
The common base class of Nebula.
Definition
refcounted.h:38
Core::RefCountedList
Implements a static list which keeps track of all refcounted objects to detect refcounting leaks at a...
Definition
refcountedlist.h:24
Core::RefCountedList::DumpLeaks
void DumpLeaks()
dump memory leaks, this methods is called by RefCounted::DumpRefCountedLeaks()
Definition
refcountedlist.cc:19
Core::RefCountedList::refcountedDebugNames
Util::Dictionary< RefCounted *, Util::String > refcountedDebugNames
Definition
refcountedlist.h:31
Core::RefCountedList::SetDebugName
void SetDebugName(RefCounted *ptr, const Util::String &name)
add debug name
Definition
refcountedlist.cc:60
Util::Dictionary
A collection of key/value pairs with quick value retrieval by key at roughly O(log n).
Definition
dictionary.h:35
Util::List
Implements a doubly linked list.
Definition
list.h:20
list.h
Core
Definition
coreserver.cc:11
string.h
Util.String
Nebula's universal string class.
Definition
String.cs:8
types.h
code
foundation
core
refcountedlist.h
Generated on
for Nebula. Dark theme by
Tilen Majerle
. All rights reserved.