OST_OBJCOUNTER(3)

πŸ“¦ version 1.8.1, in ubuntu jammy

✨ 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