foobar2000 SDK  2015-08-03
Public Types | Public Member Functions | Static Public Member Functions | Private Types | Static Private Attributes
pfc::instanceTracker< t_base >

#include <other.h>

+ Inheritance diagram for pfc::instanceTracker< t_base >:

Public Types

typedef pfc::avltree_t< t_self * > t_list
 

Public Member Functions

 instanceTracker (const t_self &p_other)
 
 ~instanceTracker ()
 
 TEMPLATE_CONSTRUCTOR_FORWARD_FLOOD_WITH_INITIALIZER (instanceTracker, t_base,{g_list+=this;})
 

Static Public Member Functions

template<typename t_callback >
static void forEach (t_callback &p_callback)
 
static const t_listinstanceList ()
 

Private Types

typedef instanceTracker< t_baset_self
 

Static Private Attributes

static t_list g_list
 

Detailed Description

template<typename t_base>
class pfc::instanceTracker< t_base >

Definition at line 174 of file other.h.

Member Typedef Documentation

template<typename t_base >
typedef pfc::avltree_t<t_self*> pfc::instanceTracker< t_base >::t_list

Definition at line 183 of file other.h.

template<typename t_base >
typedef instanceTracker<t_base> pfc::instanceTracker< t_base >::t_self
private

Definition at line 176 of file other.h.

Constructor & Destructor Documentation

template<typename t_base >
pfc::instanceTracker< t_base >::instanceTracker ( const t_self p_other)
inline

Definition at line 180 of file other.h.

180 : t_base( (const t_base &)p_other) {g_list += this;}
static t_list g_list
Definition: other.h:187
template<typename t_base >
pfc::instanceTracker< t_base >::~instanceTracker ( )
inline

Definition at line 181 of file other.h.

181 {g_list -= this;}
static t_list g_list
Definition: other.h:187

Member Function Documentation

template<typename t_base >
template<typename t_callback >
static void pfc::instanceTracker< t_base >::forEach ( t_callback &  p_callback)
inlinestatic

Definition at line 185 of file other.h.

185 {instanceList().enumerate(p_callback);}
void enumerate(t_callback &p_callback) const
Definition: avltree.h:458
static const t_list & instanceList()
Definition: other.h:184
template<typename t_base >
static const t_list& pfc::instanceTracker< t_base >::instanceList ( )
inlinestatic

Definition at line 184 of file other.h.

184 {return g_list;}
static t_list g_list
Definition: other.h:187
template<typename t_base >
pfc::instanceTracker< t_base >::TEMPLATE_CONSTRUCTOR_FORWARD_FLOOD_WITH_INITIALIZER ( instanceTracker< t_base ,
t_base  ,
{g_list+=this;}   
)

Field Documentation

template<typename t_base >
instanceTracker< t_base >::t_list pfc::instanceTracker< t_base >::g_list
staticprivate

Definition at line 187 of file other.h.


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