sc::PointChargeData(3)

πŸ“¦
version 2.3.1 Β· 4 versions
, in fedora 43, ubuntu noble

πŸ’– sc::PointChargeData(3) πŸ’–

okay so bestie, welcome to the Library Functions Manual page for sc::PointChargeData β€” she's a whole vibe, she's giving "I hold your point charges and I hold them correctly", and yes we're gonna read the whole thing together, no skimming, no skipping, we eat the entire page. πŸ“


✨ NAME ✨

sc::PointChargeData β€” that's her, that's the name, iconic, no notes. πŸ‘‘


🌸 SYNOPSIS 🌸

she inherits from sc::RefCount, which is like her rich parent that handles all the reference counting drama so she doesn't have to.

Inherits sc::RefCount.

πŸŽ€ Public Member Functions πŸŽ€

PointChargeData (int ncharge, const double *const *positions, const
    double *charges, int copy_data=0)
int ncharges () const
const double * charges () const
const double *const * positions () const

so like. the constructor takes your ncharge, your positions (a const double *const *, she's fancy, she's const-const, she's protected), your charges (const double *), and a lil copy_data flag that defaults to 0. then ncharges() tells you how many charges there are, charges() hands you the charges pointer, and positions() hands you the positions pointer. that's it, that's the whole job, and she does it flawlessly. πŸ’…

πŸ’œ Public Member Functions inherited from sc::RefCount πŸ’œ

these are the heirlooms she got from her RefCount parent. slay.

  • int lock_ptr () const β€” locks this object. like, hands off, she's busy. πŸ”’
  • int unlock_ptr () const β€” unlocks this object. you may approach again. πŸ”“
  • void use_locks (bool inVal) β€” start and stop using locks on this object. flip the inVal switch, that's the whole thing.
  • refcount_t nreference () const β€” return the reference count. just peeking, not touching. πŸ‘€
  • refcount_t reference () β€” increment the reference count and return the new count. she gains a follower, she reports the follower count.
  • refcount_t dereference () β€” decrement the reference count and return the new count. someone unfollowed, she tells you the new number. 😭
  • int managed () const β€” no description here bestie, the manpage just... leaves it there. mysterious. we respect the mystery. πŸ™ˆ
  • void unmanage () β€” turn off the reference counting mechanism for this object. she's going off-grid, no more counting.
  • int managed () const β€” return 1 if the object is managed. Otherwise return 0. yes she appears twice, once with lore and once without, and honestly? main character energy. πŸ‘‘

πŸ¦‹ Public Member Functions inherited from sc::Identity πŸ¦‹

  • Identifier identifier () β€” Return the Identifier for this argument.

one function, one job, no drama. we love a minimal queen.

🌈 Additional Inherited Members 🌈

🌸 Protected Member Functions inherited from sc::RefCount 🌸

these are protected, so like, family only, iykyk.

RefCount (const RefCount &)
RefCount & operator= (const RefCount &)

copy constructor and copy assignment, both locked behind protected. don't try it unless you're in the club. πŸŽ€


⭐ Author ⭐

Generated automatically by Doxygen for MPQC from the source code. she wasn't written by a person, she was manifested by Doxygen. respect the process. ✨

and that's the page bestie!! every flag, every signature, every inherited function, all of it, untouched, no cap. πŸ’–

MPQC β€” Version 2.3.1 🫢 and yeah, this page is literally sc::PointChargeData(3), that's the section, that's the source, that's the date-adjacent energy, we're done here, mwah. πŸ’…πŸŽ€πŸ¦‹

πŸ“¦ where this page comes from