COOLFluiD
Release kernel
COOLFluiD is a Collaborative Simulation Environment (CSE) focused on complex MultiPhysics simulations.
|
Public Types | |
typedef BufferT::iterator | PosT |
Public Member Functions | |
NodePacker (const mesh::Dictionary &dict, BufferT &buffer) | |
std::ptrdiff_t | size (const Uint nb_entries) |
Return the size needed for the given number of entries. More... | |
void | reset (const PosT position) |
Reset the internal pointer to the given position. More... | |
PosT | position () const |
Return the current position. More... | |
void | pack_local_id (const Uint local_id) |
void | pack_global_id (const Uint global_id) |
template<typename NumberT > | |
void | pack_number (const NumberT &number) |
Pack a single number. More... | |
Private Types | |
typedef std::vector< char > | BufferT |
typedef Uint | GidT |
typedef Uint | RankT |
Private Attributes | |
const mesh::Dictionary & | m_dict |
BufferT & | m_buffer |
const Uint | m_nb_fields |
PosT | m_position |
std::ptrdiff_t | m_entry_size |
std::vector< std::ptrdiff_t > | m_field_sizes |
Static Private Attributes | |
static const Uint | gid_size = sizeof(GidT) |
static const Uint | rank_size = sizeof(RankT) |
Helper class to pack nodes in a char buffer, including all related fields. Packing is as follows:
|
inline |
|
inline |
|
inline |
|
inline |
|
private |
Send comments to: COOLFluiD Web Admin |