sc::Identifier(3)
π NAME π
Welcome to sc::Identifier(3) from the MPQC manual, bestie π
This page is all about the sc::Identifier crew.
sc::Identifierβ Identifier's are used to distinguish and order objects.
π SYNOPSIS π
First things first, you gotta pull in the header:
#include <identity.h>
π«Ά Public Member Functions π«Ά
Okay so here's the whole member-function lineup, no skips, no shortcuts:
Identifier ()β Creates anIdentifierfor a null object. Starting from nothing, iconic.Identifier (const Identity *i)β Creates anIdentifierfor the given object.Identifier (const Identifier &i)β Creates anIdentifierfor the given object. Copy vibes.~Identifier ()β The destructor does nothing. Literally just vibes; it does nothing.void operator= (const Identifier &i)β Assigns to the givenIdentifier.int operator< (const Identifier &i) constβ Less than.int operator> (const Identifier &i) constβ Greater than.int operator== (const Identifier &i) constβ Equal.int operator<= (const Identifier &i) constβ Less than or equal.int operator>= (const Identifier &i) constβ Greater than or equal.int operator!= (const Identifier &i) constβ Not equal.void print (std::ostream &) constβ This one's listed with no extra description attached, periodt.
π¦ Detailed Description π¦
The whole point: Identifier's are used to distinguish and order objects. That's the main-character job.
On many architectures, a pointer to the object will suffice π«Ά But here's the fine print, and it's important: the C++ standard only guarantees that this works for two pointers pointing within the same structure or array.
Classes need to inherit from Identity to use this mechanism. And heads up: Identity, Identifier, and the shorthand boolean operations may have to be modified for certain architectures.
β οΈ So yeah, bestie β the architecture caveat is real. This is not a βworks everywhere with zero changesβ situation.
π Author π
Generated automatically by Doxygen for MPQC from the source code. Not me β I just gave it the group-chat glow-up β¨
That's the whole page, bestie β MPQC Version 2.3.1, dated Sun Oct 4 2020 πβ¨
π¦ where this page comes from
- ubuntu jammy: libsc-doc 2.3.1-21
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms