Nebula
Loading...
Searching...
No Matches
Core::RefCountedList Class Reference

#include <refcountedlist.h>

Detailed Description

Implements a static list which keeps track of all refcounted objects to detect refcounting leaks at application shutdown.

Will only be active when the application is compiled in debug mode.

Inherits Util::List< RefCounted * >.

Public Member Functions

void DumpLeaks ()
 dump memory leaks, this methods is called by RefCounted::DumpRefCountedLeaks()
 
void SetDebugName (RefCounted *ptr, const Util::String &name)
 add debug name
 
- Public Member Functions inherited from Util::List< RefCounted * >
 List ()
 constructor
 
 List (const List< RefCounted * > &rhs)
 copy constructor
 
 List (List< RefCounted * > &&rhs)
 move constructor
 
 ~List ()
 destructor
 
void operator= (const List< RefCounted * > &rhs)
 assignment operator
 
void operator= (List< RefCounted * > &&rhs)
 assignment operator
 
bool IsEmpty () const
 return true if the list is empty
 
SizeT Size () const
 get number of elements in list (slow)
 
void Clear ()
 clear list
 
void AddList (const List< RefCounted * > &l)
 add contents of other list to this list
 
Iterator AddAfter (Iterator iter, const RefCounted *&e)
 add element after given element
 
Iterator AddBefore (Iterator iter, const RefCounted *&e)
 add element before given element
 
Iterator AddFront (const RefCounted *&e)
 add element to beginning of list
 
Iterator AddBack (const RefCounted *&e)
 add element to end of list
 
RefCounted * RemoveFront ()
 remove first element of list
 
RefCounted * RemoveBack ()
 remove last element of list
 
RefCounted * Remove (Iterator iter)
 remove given element
 
RefCounted *& Front () const
 get first element
 
RefCounted *& Back () const
 get last element
 
Iterator Begin () const
 get iterator to first element
 
Iterator End () const
 get iterator past the last element
 
Iterator Last () const
 get iterator to last element
 
Iterator Find (const RefCounted *&e, Iterator start) const
 find element in array (slow)
 

Private Attributes

Util::Dictionary< RefCounted *, Util::StringrefcountedDebugNames
 

Member Function Documentation

◆ DumpLeaks()

void Core::RefCountedList::DumpLeaks ( )

dump memory leaks, this methods is called by RefCounted::DumpRefCountedLeaks()

◆ SetDebugName()

void Core::RefCountedList::SetDebugName ( RefCounted * ptr,
const Util::String & name )

add debug name

Member Data Documentation

◆ refcountedDebugNames

Util::Dictionary<RefCounted*, Util::String> Core::RefCountedList::refcountedDebugNames
private

The documentation for this class was generated from the following files: