Nebula
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//------------------------------------------------------------------------------
19namespace Core
20{
21class RefCounted;
22
23class RefCountedList : public Util::List<RefCounted*>
24{
25public:
27 void DumpLeaks();
29 void SetDebugName(RefCounted* ptr, const Util::String& name);
30private:
32};
33
34}
35//------------------------------------------------------------------------------
The common base class of Nebula.
Definition refcounted.h:38
Implements a static list which keeps track of all refcounted objects to detect refcounting leaks at a...
Definition refcountedlist.h:24
void DumpLeaks()
dump memory leaks, this methods is called by RefCounted::DumpRefCountedLeaks()
Definition refcountedlist.cc:19
Util::Dictionary< RefCounted *, Util::String > refcountedDebugNames
Definition refcountedlist.h:31
void SetDebugName(RefCounted *ptr, const Util::String &name)
add debug name
Definition refcountedlist.cc:60
A collection of key/value pairs with quick value retrieval by key at roughly O(log n).
Definition dictionary.h:34
Implements a doubly linked list.
Definition list.h:20
Definition coreserver.cc:10
Nebula's universal string class.
Definition String.cs:8