Version: 3.3.0
list.h File Reference

Classes

class  wxList< T >
 wxList<T> is a legacy class similar to std::list<T*>. More...
 
class  wxNode< T >
 wxNode<T> is the node structure used in linked lists (see wxList) and derived classes. More...
 

Macros

#define WX_DECLARE_LIST(T, name)
 This macro declares a new legacy linked list container named name and containing pointers to the objects of type T. More...
 
#define WX_DEFINE_LIST(T, name)
 This macro define a new legacy linked list container named name. More...
 
#define WX_CLEAR_LIST(type, list)   wxClearList(list)
 Deprecated macro equivalent to wxClearList(). More...
 

Functions

template<typename T >
void wxClearList (T &list)
 Function deletes all elements of the given list, which must be pointers. More...
 

Macro Definition Documentation

◆ WX_CLEAR_LIST

#define WX_CLEAR_LIST (   type,
  list 
)    wxClearList(list)

Deprecated macro equivalent to wxClearList().

Deprecated:
This macro is deprecated, use wxClearList() instead.

◆ WX_DECLARE_LIST

#define WX_DECLARE_LIST (   T,
  name 
)

This macro declares a new legacy linked list container named name and containing pointers to the objects of type T.

You must use the WX_DEFINE_LIST() macro to define the class declared by this macro.

◆ WX_DEFINE_LIST

#define WX_DEFINE_LIST (   T,
  name 
)

This macro define a new legacy linked list container named name.

You must use WX_DECLARE_LIST() macro to declare the list class before defining it.

Function Documentation

◆ wxClearList()

template<typename T >
void wxClearList ( T &  list)
inline

Function deletes all elements of the given list, which must be pointers.

This simple helper function just calls delete on each element of the list.

Since
3.3.0