sc::ExEnv(3)

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

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 over argc and argv. πŸŽ€
  • static int initialized () β€” returns nonzero if ExEnv has 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 () β€” returns argv[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 an ostream that writes from all nodes. all of them. every single one. 🌈
  • static std::ostream & errn () β€” returns an ostream for error messages that writes from all nodes. errors, but make it multi-node. 😭
  • static std::ostream & out0 () β€” returns an ostream that writes from node 0. just node 0. VIP behavior. ⭐
  • static std::ostream & err0 () β€” returns an ostream for 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