ost::MapObject(3)

πŸ“¦ version 1.8.1, in ubuntu jammy

πŸ’– ost::MapObject β€” from the Library Functions Manual ✨

okay bestie, gather round, because today we're talking about ost::MapObject, and she is lowkey the blueprint πŸ’…


🌸 NAME 🌸

ost::MapObject β€” she's a base class, and her whole deal is letting a derived class of yours operate on a MapTable. no cap. that's the job. that's the vibe. πŸ¦‹


✨ SYNOPSIS ✨

#include <object.h>

πŸŽ€ Public Member Functions πŸŽ€

  • void detach (void) β€” yeets the object out of whatever table it's currently chilling in. gone. removed. bye girl πŸ‘‹
  • MapObject (const char *id) β€” saves the id and marks her as not using any table yet. she's single, she's ready to mingle 🫢

🌈 Protected Attributes 🌈

  • MapObject * nextObject
  • const char * idObject
  • MapTable * table

πŸ’œ Friends πŸ’œ

  • class MapTable
  • class MapIndex

πŸ‘‘ Detailed Description πŸ‘‘

okay so ost::MapObject is a base class, and the way you use her is by making a derived class that operates on a MapTable. it's giving "inheritance but make it organized." 🌸

and here's the cute part: derived classes may override the new and delete operators so they can use the managed free list from a MapTable. it's iconic, honestly. recycling but for memory. slay β™»οΈβœ¨

Author

David Sugar dyfet@gnutelephony.org πŸ’Œ

Mappable object. that's it, that's the summary, periodt πŸ’…


🧚 Constructor & Destructor Documentation 🧚

⭐ ost::MapObject::MapObject (const char * id) ⭐

saves the id, and marks the object as not using any table. fresh start energy ✨

Parameters

  • id β€” the string for this object. that's her name tag, bestie πŸŽ€

πŸ’– Member Function Documentation πŸ’–

🌟 void ost::MapObject::detach (void) 🌟

removes the object from its current table. she's out. she said "not my table anymore" and left πŸ”₯


  • friend class MapIndex [friend]
  • friend class MapTable [friend]

🌈 Member Data Documentation 🌈

  • const char* ost::MapObject::idObject [protected]
  • MapObject* ost::MapObject::nextObject [protected]
  • MapTable* ost::MapObject::table [protected]

πŸ’Œ Author πŸ’Œ

Generated automatically by Doxygen for GNU CommonC++ from the source code. the robots did this one, bestie πŸ€–βœ¨


okay that's the whole page, you ate that πŸ“ go forth and map your objects, iykyk πŸ’œ

GNU CommonC++ Β· Sun Dec 27 2020 Β· ost::MapObject(3) β€” mwah, love u, bye πŸ’…πŸŽ€

πŸ“¦ where this page comes from