ost::LinkedSingle(3)
π ost::LinkedSingle π
okay bestie, welcome to the Library Functions Manual β¨ this one's about ost::LinkedSingle(3) and it's lowkey the blueprint for every list you're gonna build, so grab a strawberry π and let's get into it.
πΈ NAME πΈ
ost::LinkedSingle β a self managed single linked list object chain. yes, self managed. it does its own thing, it's independent, it's giving main character energy π
β¨ SYNOPSIS β¨
#include <object.h>
π Public Member Functions
virtual LinkedSingle * getFirst (void)
Get first linked object in list.
virtual LinkedSingle * getLast (void)
Gets the last object in the list.
LinkedSingle * getNext (void)
Get next object, for convenience.
virtual void insert (LinkedSingle &obj)
Insert object into chain.
LinkedSingle & operator+= (LinkedSingle &obj)
π¦ Protected Member Functions
LinkedSingle ()
virtual ~LinkedSingle ()
π Protected Attributes
LinkedSingle * nextObject
π DETAILED DESCRIPTION π
Self managed single linked list object chain. fr fr, that's the whole vibe.
So here's the tea β β this thing is used for accumulating lists by using it as a base class for a derived subclass. you don't use it raw, you inherit from it. iykyk.
Author
- David Sugar
dyfet@gnutelephony.org
and just to say it one more time, because it slaps: Accumulating single linked list. π
π§ CONSTRUCTOR & DESTRUCTOR DOCUMENTATION π§
ost::LinkedSingle::LinkedSingle () [inline], [protected]
no notes, bestie. it exists, it's protected, it's inline. that's it.
virtual ost::LinkedSingle::~LinkedSingle () [protected], [virtual]
virtual destructor, protected, living its little life. periodt.
π₯ MEMBER FUNCTION DOCUMENTATION π₯
virtual LinkedSingle* ost::LinkedSingle::getFirst (void) [virtual]
Get first linked object in list. π
okay so this one's doing a LOT. it may be dynamically recast, and it may refer to a master static bookmark pointer in a derived class. otherwise it simply returns the current object. and in a 'free' list, this may not only return the first object, but also set the first to next. so yeah β it can mutate stuff on you, that's not a bug, that's the design. π
Returns
- pointer to first object in list.
virtual LinkedSingle* ost::LinkedSingle::getLast (void) [virtual]
Gets the last object in the list. this normally follows the links to the end. it's virtual because a derived class may include a static member bookmark for the current end β so it's customizable, iconic behavior honestly π
Returns
- pointer to last object in list.
LinkedSingle* ost::LinkedSingle::getNext (void) [inline]
Get next object, for convenience. a derived class may use this with a dynamic cast. it's the little shortcut bestie, the grab-and-go β¨
Returns
- next object in list.
virtual void ost::LinkedSingle::insert (LinkedSingle & obj) [virtual]
Insert object into chain. it's virtual because a derived class may choose instead to perform an insert at head or tail, may manage bookmarks, and may add mutex lock. so it's flexible, it's got range, it's whatever your subclass needs it to be π
Parameters
- object being inserted.
LinkedSingle& ost::LinkedSingle::operator+= (LinkedSingle & obj)
that's the whole signature, bestie. no extra doc, no commentary, just vibes. use it to add an object onto the chain with that cute little += operator π«Ά
π MEMBER DATA DOCUMENTATION π
LinkedSingle* ost::LinkedSingle::nextObject [protected]
the pointer that holds it all together, protected, doing the quiet work behind the scenes. the backbone of the whole chain honestly π
π AUTHOR π
Generated automatically by Doxygen for GNU CommonC++ from the source code.
and that's a wrap bestie π this page came to you from GNU CommonC++, dated Sun Dec 27 2020, and it was ost::LinkedSingle(3) the whole time. go build something cute with it πβ¨π¦
π¦ 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