EpetraExt::PackTraits< T > Struct Template Reference

#include <EpetraExt_PackTraits.h>

List of all members.

Static Public Member Functions

size_t size (T const &object)
void pack (T const &object, char *buf, size_t size, int &pos)
void unpack (T &object, char *buf, size_t size, int &pos)


Detailed Description

template<typename T>
struct EpetraExt::PackTraits< T >

Traits for packing and unpacking of data into char buffers for communication. Should be replaced by something more generic in Teuchos.


Member Function Documentation

template<typename T>
void EpetraExt::PackTraits< T >::pack T const &  object,
char *  buf,
size_t  size,
int &  pos
[inline, static]
 

Packs object into char buffer

Parameters:
object data to be packed.
buf buffer to be used for packed data.
size total size of buffer (for overrun check).
pos current position in buffer for packing.

template<typename T>
size_t EpetraExt::PackTraits< T >::size T const &  object  )  [inline, static]
 

Returns size in byte necessary to pack datatype

Parameters:
object Input, object to be sized for packing.
Returns:
Size in bytes needed for packed object.

template<typename T>
void EpetraExt::PackTraits< T >::unpack T &  object,
char *  buf,
size_t  size,
int &  pos
[inline, static]
 

Unpacks object from char buffer

Parameters:
object data to be unpacked.
buf buffer to be used for unpacking data.
size total size of buffer (for overrun check).
pos current position in buffer for unpacking.


The documentation for this struct was generated from the following file:
Generated on Thu Sep 18 12:39:33 2008 for EpetraExt by doxygen 1.3.9.1