SC_RESULT(3)
π NAME π
sc::Result< T > β this is the MPQC manpage, section 3, and bestie, it's a template class that lowkey runs the whole "do I even need to compute this?" department β¨
So basically: Results are members of Compute specializations that keep track of whether or not a particular result should be computed or if it has already been computed. That's the whole vibe check, no cap π
β¨ SYNOPSIS β¨
#include <comptmpl.h>
Inherits sc::ResultInfo. Yes queen, it's got a whole ancestry π
πΈ Public Member Functions
Result (Compute *c)β constructor that takes aCompute *pointer, iconicResult (const Result< T > &r, Compute *c)β copy-ish constructor, takes anotherResult< T >and aCompute *operator T& ()β conversion operator, hands you aT&T * operator-> ()β arrow operator, gives you aT *T & result ()β grab the result as aT &T & result_noupdate ()β sameT &, but the no update version, iykykconst T & result_noupdate () constβ theconsttwin ofresult_noupdate (), also returnsconst T &void operator= (const T &a)β assign aconst T &into itvoid operator= (const Result< T > &r)β assign anotherResult< T >into it
π¦ Additional Inherited Members
Yep, there's more, inherited from sc::ResultInfo β the whole family tree is doing its thing π§
π Detailed Description
template<class T>
class sc::Result< T >"
(ok so the stray quote at the end is literally what's there, not me being chaotic π)
Results are members of Compute specializations that keep track of whether or not a particular result should be computed or if it has already been computed. Literally their whole job. Main character energy π₯
π Heads up bestie: for non-class template parameters, use NCResult.
π Author π
Generated automatically by Doxygen for MPQC from the source code. Slay, Doxygen, I guess π
And that's the page, bestie β brought to you by Version 2.3.1, dated Sun Oct 4 2020, from the sc::Result< T >(3) files. Go forth and cache your results responsibly π«Άπ
π¦ 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