COOLFluiD  Release kernel
COOLFluiD is a Collaborative Simulation Environment (CSE) focused on complex MultiPhysics simulations.
Public Member Functions | Private Types | Private Attributes | List of all members
NodeUnpacker Class Reference

Helper class to unpack nodes packed using NodePacker. More...

Public Member Functions

 NodeUnpacker (const BufferT &buffer)
 
template<typename GidToLocalT >
void unpack_next_node (mesh::Dictionary &dict, const GidToLocalT &gid_to_local)
 
template<typename NumberT >
NumberT unpack_number ()
 Unpack a number and move the buffer position. More...
 
bool eof () const
 True if the position is at the end of the buffer. More...
 

Private Types

typedef std::vector< char > BufferT
 
typedef BufferT::const_iterator PosT
 
typedef Uint GidT
 
typedef Uint RankT
 

Private Attributes

const BufferTm_buffer
 
PosT m_position
 

Detailed Description

Helper class to unpack nodes packed using NodePacker.

Definition at line 333 of file PHG.cpp.

Member Typedef Documentation

typedef std::vector<char> BufferT
private

Definition at line 335 of file PHG.cpp.

typedef Uint GidT
private

Definition at line 385 of file PHG.cpp.

typedef BufferT::const_iterator PosT
private

Definition at line 336 of file PHG.cpp.

typedef Uint RankT
private

Definition at line 386 of file PHG.cpp.

Constructor & Destructor Documentation

NodeUnpacker ( const BufferT buffer)
inline

Definition at line 338 of file PHG.cpp.

Member Function Documentation

bool eof ( ) const
inline

True if the position is at the end of the buffer.

Definition at line 379 of file PHG.cpp.

void unpack_next_node ( mesh::Dictionary dict,
const GidToLocalT &  gid_to_local 
)
inline

Unpack the next node and store it in the dictionary, using the provided data structure to look up the local ID

Definition at line 347 of file PHG.cpp.

NumberT unpack_number ( )
inline

Unpack a number and move the buffer position.

Definition at line 371 of file PHG.cpp.

Member Data Documentation

const BufferT& m_buffer
private

Definition at line 388 of file PHG.cpp.

PosT m_position
private

Definition at line 390 of file PHG.cpp.


The documentation for this class was generated from the following file:
Send comments to:
COOLFluiD Web Admin