foobar2000 SDK  2015-01-14
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 166 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 175 of file other.h.

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

Definition at line 168 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 172 of file other.h.

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

Definition at line 173 of file other.h.

173 {g_list -= this;}
static t_list g_list
Definition: other.h:179

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 177 of file other.h.

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

Definition at line 176 of file other.h.

176 {return g_list;}
static t_list g_list
Definition: other.h:179
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 179 of file other.h.


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