libMesh
Public Member Functions | Static Public Member Functions | List of all members
libMesh::Parallel::Packing< T > Class Template Reference

Define data types and (un)serialization functions for use when encoding a potentially-variable-size object of type T. More...

#include <communicator.h>

Public Member Functions

template<typename BufferIter , typename Context >
const Elemunpack (BufferIter in, Context *ctx)
 
template<typename BufferIter , typename Context >
const Nodeunpack (BufferIter in, Context *ctx)
 

Static Public Member Functions

template<typename OutputIter , typename Context >
static void pack (const T &object, OutputIter data_out, const Context *context)
 
template<typename Context >
static unsigned int packable_size (const T &object, const Context *context)
 
template<typename BufferIter >
static unsigned int packed_size (BufferIter iter)
 
template<typename BufferIter , typename Context >
static T unpack (BufferIter in, Context *ctx)
 

Detailed Description

template<typename T>
class libMesh::Parallel::Packing< T >

Define data types and (un)serialization functions for use when encoding a potentially-variable-size object of type T.

Users will need to specialize this class for their particular data types.

Definition at line 57 of file communicator.h.

Member Function Documentation

◆ pack()

template<typename T>
template<typename OutputIter , typename Context >
static void libMesh::Parallel::Packing< T >::pack ( const T &  object,
OutputIter  data_out,
const Context *  context 
)
static

◆ packable_size()

template<typename T>
template<typename Context >
static unsigned int libMesh::Parallel::Packing< T >::packable_size ( const T &  object,
const Context *  context 
)
static

◆ packed_size()

template<typename T>
template<typename BufferIter >
static unsigned int libMesh::Parallel::Packing< T >::packed_size ( BufferIter  iter)
static

◆ unpack() [1/3]

template<typename T>
template<typename BufferIter , typename Context >
static T libMesh::Parallel::Packing< T >::unpack ( BufferIter  in,
Context *  ctx 
)
static

◆ unpack() [2/3]

template<typename T>
template<typename BufferIter , typename Context >
const Elem* libMesh::Parallel::Packing< T >::unpack ( BufferIter  in,
Context *  ctx 
)

Definition at line 84 of file parallel_elem.h.

References libMesh::Parallel::Packing< T >::unpack().

85 { return Packing<Elem*>::unpack(in, ctx); }
static T unpack(BufferIter in, Context *ctx)

◆ unpack() [3/3]

template<typename T>
template<typename BufferIter , typename Context >
const Node* libMesh::Parallel::Packing< T >::unpack ( BufferIter  in,
Context *  ctx 
)

Definition at line 84 of file parallel_node.h.

References libMesh::Parallel::Packing< T >::unpack().

85 { return Packing<Node *>::unpack(in, ctx); }
static T unpack(BufferIter in, Context *ctx)

The documentation for this class was generated from the following files: