logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

sc::BcastState - This creates and forwards/retrieves data from either a BcastStateRecv or a

Author

       Generated automatically by Doxygen for MPQC from the source code.

Version 2.3.1                                    Sun Oct 4 2020                                sc::BcastState(3)

Detailed Description

       This creates and forwards/retrieves data from either a BcastStateRecv or a BcastStateSend depending on
       the value of the argument to constructor.

Member Function Documentation

voidsc::BcastState::bcast(int&)
       Broadcast data to all nodes. After these are called for a group of data the flush member must be called
       to force the source node to actually write the data.

   voidsc::BcastState::flush()
       Force data to be written. Data is not otherwise written until the buffer is full.

Name

       sc::BcastState - This creates and forwards/retrieves data from either a BcastStateRecv or a
       BcastStateSend depending on the value of the argument to constructor.

Synopsis

       #include <mstate.h>

   PublicMemberFunctionsBcastState (const Ref< MessageGrp > &, int source=0)
           Create a BcastState object. The default source is node 0.
       void bcast (int &)
           Broadcast data to all nodes.
       void bcast (double &)
       void bcast (int *&, int)
       void bcast (double *&, int)
       template<class T > void bcast (Ref< T > &a)
       void flush ()
           Force data to be written.
       void forget_references ()
           Call the StateOut or StateIn forget_references member.
       void set_buffer_size (int)
           Controls the amount of data that is buffered before it is sent.

See Also