OST_OBJCOUNTER(3)
β¨ NAME β¨
ok so bestie, welcome to the Library Functions Manual π this page is all about ost::objCounter< T > β it's a generic template class for creating classes which maintain an active count of the number of instances currently in active use. literally it just... counts how many of your objects are alive rn π«Ά
πΈ SYNOPSIS πΈ
#include <objcount.h>
π Protected Member Functions
objCounter ()virtual ~objCounter ()
π¦ Static Protected Attributes
static unsigned objCount = 0
π Detailed Description π
template<class T>
class ost::objCounter< T >
ok so here's the tea: this is a generic template class for creating classes which maintain an active count of the number of instances currently in active use. it's giving... a form of global reference count. no cap π§
Author
David Sugar dyfet@gnutelephony.org
Object instance global reference count. periodt β¨
π₯ Constructor & Destructor Documentation π₯
template<class T > ost::objCounter< T >::objCounter () [inline], [protected]
the constructor, bestie! it's [inline] and [protected] β so it's lowkey doing its thing behind the scenes. it references ost::objCounter< T >::objCount. π
template<class T > virtual ost::objCounter< T >::~objCounter () [inline], [protected], [virtual]
the destructor!! it's [inline], [protected], and [virtual] β very main character energy fr fr. it also references ost::objCounter< T >::objCount. she's cleaning up and keeping the count honest ππ
π Member Data Documentation π
template<class T > unsigned ost::objCounter< T >::objCount = 0 [static], [protected]
the actual counter, the icon herself β she's [static] and [protected], and she starts at = 0 like every good count does. she is referenced by ost::objCounter< T >::objCounter(), and ost::objCounter< T >::~objCounter(). the way both the constructor and the destructor are obsessed with her?? iykyk π
π Author π
Generated automatically by Doxygen for GNU CommonC++ from the source code. (yes bestie, the robots wrote this one π€β¨)
and that's the whole vibe! π«Ά this page was brought to you by GNU CommonC++, dated Sun Dec 27 2020, and it lives in your man pages as ost::objCounter< T >(3). slay, go forth and count your objects πππ¦
π¦ where this page comes from
- ubuntu jammy: libcommoncpp2-doc 1.8.1-10
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms