sc::ExEnv(3)
okay so this is sc::ExEnv(3) from the MPQC manual, and it's literally the vibe-check class for figuring out how your program is being run β like, who are you, where are you, how many CPUs are you working with, all that. bestie, it's giving "main character energy" for runtime info. π
β¨
π NAME π
sc::ExEnv β the ExEnv class is used to find out about how the program is being run. periodt. π«Ά
β¨ SYNOPSIS β¨
#include <exenv.h>
πΈ Static Public Member Functions πΈ
static void init (int &argcref, char **&argvref)β sets the argument count and vector. like, this is where you hand overargcandargv. πstatic int initialized ()β returns nonzero ifExEnvhas been initialized. zero means nope, not yet. πstatic int & argc ()β returns a reference to the argument count. yes, a reference.int &. iconic. π₯static char **& argv ()β returns a reference to the argument vector.char **&, no cap. πstatic const char * program_name ()β returnsargv[0]with the path removed. so just the program's little name, slaying on its own. πstatic const char * hostname ()β returns the host name. where you at, bestie? π¦static const char * username ()β returns the user name. who you are, iykyk. πΈstatic void set_out (std::ostream *o)β the original gives no description here, so i'm not gonna invent one. it's just listed, and we respect that. πstatic std::ostream & outn ()β returns anostreamthat writes from all nodes. all of them. every single one. πstatic std::ostream & errn ()β returns anostreamfor error messages that writes from all nodes. errors, but make it multi-node. πstatic std::ostream & out0 ()β returns anostreamthat writes from node 0. just node 0. VIP behavior. βstatic std::ostream & err0 ()β returns anostreamfor error messages that writes from node 0. node 0 gets the error tea. πstatic size_t memory ()β the amount of memory on this node. how much room you've got, literally. π§static int nproc ()β the number of processors on this node. how many little workers are out here doing the most. π
π¦ Static Protected Attributes π¦
static int initialized_static int * argc_static char *** argv_static char hostname_ [256]static char username_ [9]static size_t mem_static int nproc_static std::ostream * out_static std::ostream * nullstream_
like, these are the protected internals β the backstage pass. don't touch unless you're supposed to. π
π« Detailed Description π«
the ExEnv class is used to find out about how the program is being run. that's the whole assignment, bestie. no extra lore, no side quests. it's just here to tell you the runtime tea. ββ¨
π Author π
Generated automatically by Doxygen for MPQC from the source code. so technically the author is Doxygen, which is a whole mood. π€π
and that's the page! Version 2.3.1, dated Sun Oct 4 2020 β oldie but a goodie. bye bestie, go check your nproc() and slay. π
π«ΆπΈ
π¦ 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