packages/MC/mc/Box_Shape.cc
//---------------------------------------------------------------------------//
// PUBLIC FUNCTIONS
//---------------------------------------------------------------------------//
/*!
 * \brief Pack the the box into \a buffer.
 */
PUBLIC FUNCTIONS
\brief Pack the the box into \a buffer.
PUBLIC FUNCTIONS \ brief Pack the the box into \ a buffer .
void Box_Shape::pack(Buffer &buffer) const
{
    profugus::Packer p;
    p.compute_buffer_size_mode();
    p << d_lox << d_loy << d_loz << d_Dx << d_Dy << d_Dz;
    buffer.resize(p.size());
    p.set_buffer(buffer.size(), &buffer[0]);
    p << d_lox << d_loy << d_loz << d_Dx << d_Dy << d_Dz;
}
void Box_Shape :: pack ( Buffer & buffer ) const { profugus :: Packer p ; p . compute_buffer_size_mode ( ) ; p << d_lox << d_loy << d_loz << d_Dx << d_Dy << d_Dz ; buffer . resize ( p . size ( ) ) ; p . set_buffer ( buffer . size ( ) , & buffer [ 0 ] ) ; p << d_lox << d_loy << d_loz << d_Dx << d_Dy << d_Dz ; }
PUBLIC FUNCTIONS
 \brief Pack the the box into \a buffer.
PUBLIC FUNCTIONS \ brief Pack the the box into \ a buffer .
// Build the packer // Compute the size of the stream // Resize the buffer // Set the buffer // Pack the data