sc::MsgStateSend(3)

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

πŸŽ€ sc::MsgStateSend(3) β€” the MPQC manual page, bestie πŸŽ€

πŸ’– NAME πŸ’–

sc::MsgStateSend β€” the abstract base class that sends objects to nodes in a MessageGrp. It’s giving β€œabstract base class with main character energy.” πŸ’…


✨ SYNOPSIS ✨

#include <mstate.h>

Inherits sc::StateOut.

Inherited by sc::BcastStateSend, and sc::StateSend.

🌸 Public Member Functions 🌸

  • MsgStateSend (const Ref< MessageGrp > &) β€” constructor moment: it takes a const Ref< MessageGrp > &.
  • virtual void flush ()=0 β€” pure virtual, no cap. Specializations must implement flush().
  • void set_buffer_size (int) β€” sets the buffer size. The buffer size of statein and stateout objects that communicate with each other must match. That’s the rule, bestie. 🫢
  • int put (const ClassDesc *) β€” the author note says: only put(const ClassDesc*) really needs overriding, but C++ will hide all the other put overloads, so everything has to be overridden. C++ being C++ 😭.
  • int put (char r) β€” write the given datum.
  • int put (unsigned int r) β€” write the given datum.
  • int put (int r) β€” write the given datum.
  • int put (float r) β€” write the given datum.
  • int put (double r) β€” write the given datum.
  • int put (const char *, int) β€” write the given array data.
  • int put (const int *, int) β€” write the given array data.
  • int put (const unsigned int *, int) β€” write the given array data.
  • int put (const float *, int) β€” write the given array data.
  • int put (const double *, int) β€” write the given array data.

πŸ›‘οΈ Protected Member Functions πŸ›‘οΈ

  • int put_array_void (const void *, int) β€” protected member function, listed exactly like this.

πŸ”’ Protected Attributes πŸ”’

  • Ref< MessageGrp > grp
  • int nbuf
  • int bufsize
  • char * buffer
  • char * send_buffer
  • int nheader
  • int * nbuf_buffer

πŸ’« Detailed Description πŸ’«

Okay so the whole vibe is: MsgStateSend is an abstract base class that sends objects to nodes in a MessageGrp. That’s literally the description. Iconic, brief, to the point. ✨


πŸ” Member Function Documentation πŸ”

int sc::MsgStateSend::put (const char *, int) [virtual]

Write the given array data. Size information is also saved. The data is allocated and read by the get(T*&) routines.

Reimplemented from sc::StateOut.


πŸ‘‘ Author πŸ‘‘

Generated automatically by Doxygen for MPQC from the source code.


Sign-off: this is from the MPQC source, version 2.3.1, dated Sun Oct 4 2020, and yes bestie, it’s the sc::MsgStateSend(3) page. Bye! πŸ«Άβœ¨πŸ’–

πŸ“¦ where this page comes from