SC_RESULT(3)

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

πŸŽ€ 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 a Compute * pointer, iconic
  • Result (const Result< T > &r, Compute *c) β€” copy-ish constructor, takes another Result< T > and a Compute *
  • operator T& () β€” conversion operator, hands you a T&
  • T * operator-> () β€” arrow operator, gives you a T *
  • T & result () β€” grab the result as a T &
  • T & result_noupdate () β€” same T &, but the no update version, iykyk
  • const T & result_noupdate () const β€” the const twin of result_noupdate (), also returns const T &
  • void operator= (const T &a) β€” assign a const T & into it
  • void operator= (const Result< T > &r) β€” assign another Result< 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