ESyS-Particle  2.3
BroadCast_cmd.hpp
Go to the documentation of this file.
1 // //
3 // Copyright (c) 2003-2014 by The University of Queensland //
4 // Centre for Geoscience Computing //
5 // http://earth.uq.edu.au/centre-geoscience-computing //
6 // //
7 // Primary Business: Brisbane, Queensland, Australia //
8 // Licensed under the Open Software License version 3.0 //
9 // http://www.opensource.org/licenses/osl-3.0.php //
10 // //
12 
13 template <typename TmplPackable>
14 void BroadcastCommand::packInto(const TmplPackable &packable)
15 {
16  packable.packInto(&(m_varBuffer));
17 }
18 
19 template <typename TmplData>
20 void BroadcastCommand::appendTypeAndName(const TmplData &namedWithType)
21 {
22  m_varBuffer.append(namedWithType.getTypeString().c_str());
23  m_varBuffer.append(namedWithType.getName().c_str());
24 }
25 
26 template <typename TmplData>
27 void BroadcastCommand::append(const TmplData &data)
28 {
29  m_varBuffer.append(data);
30 }
CVarMPIBuffer m_varBuffer
Definition: BroadCast_cmd.h:28
virtual void append(int)
Definition: mpivbuf.cpp:152
void appendTypeAndName(const TmplData &namedWithType)
Definition: BroadCast_cmd.hpp:20
void packInto(const TmplPackable &)
Definition: BroadCast_cmd.hpp:14
void append(const TmplData &basicTypeData)
Definition: BroadCast_cmd.hpp:27