sc::KeyValValueString(3)

πŸ“¦
version 2.3.1 Β· 5 versions
, in ubuntu jammy

πŸ’– sc::KeyValValueString πŸ’–

Okay bestie, this is the MPQC manual page for sc::KeyValValueString(3) β€” and yes, it's giving very specific C++ class energy. No cap.

🌸 NAME 🌸

sc::KeyValValueString β€” that's the class. Iconic. Periodt.

✨ SYNOPSIS ✨

Inherits sc::KeyValValue.

Lowkey the whole inheritance tea is right there.

πŸŽ€ Public Types πŸŽ€

enum Storage { Copy, Steal, Use }

The Storage enum has exactly three values: Copy, Steal, and Use. That's the whole list on this page β€” no extra lore, bestie.

πŸ’… Public Member Functions πŸ’…

Here's the exact function menu, character for character:

       KeyValValueString (const char *, KeyValValueString::Storage
           s=KeyValValueString::Use)
       KeyValValueString (char *, KeyValValueString::Storage
           s=KeyValValueString::Use)
       KeyValValueString (const KeyValValueString &)
       KeyValValue::KeyValValueError doublevalue (double &) const
       KeyValValue::KeyValValueError booleanvalue (int &) const
       KeyValValue::KeyValValueError floatvalue (float &) const
       KeyValValue::KeyValValueError charvalue (char &) const
       KeyValValue::KeyValValueError intvalue (int &) const
       KeyValValue::KeyValValueError sizevalue (size_t &) const
       KeyValValue::KeyValValueError pcharvalue (const char *&) const
       KeyValValue::KeyValValueError stringvalue (std::string &) const
       void print (std::ostream &o=ExEnv::out0()) const

So you've got two constructors taking const char * and char *, both with a KeyValValueString::Storage s that defaults to KeyValValueString::Use, plus the copy constructor KeyValValueString (const KeyValValueString &).

Then come the value getters β€” doublevalue (double &), booleanvalue (int &), floatvalue (float &), charvalue (char &), intvalue (int &), sizevalue (size_t &), pcharvalue (const char *&), and stringvalue (std::string &) β€” all const and all returning KeyValValue::KeyValValueError.

And finally there's print (std::ostream &o=ExEnv::out0()) const, which returns void. Obsessed with the default argument, honestly.

πŸ¦‹ Additional Inherited Members πŸ¦‹

Yep, this heading exists. The original page doesn't list any extra items under it, so don't let FOMO hit β€” the inherited stuff is from sc::KeyValValue, per the SYNOPSIS. That's the whole vibe here.

πŸ‘‘ Author πŸ‘‘

Generated automatically by Doxygen for MPQC from the source code.

MPQC version 2.3.1, dated Sun Oct 4 2020 β€” that's the cute little version/date footer tea, bestie. Doxygen auto-generated this from the source code. Mwah πŸ’‹πŸ’…

πŸ“¦ where this page comes from