HavoqGT
havoqgt::mpi::mailbox_routed< TMsg >::msg_buffer Class Reference

Public Member Functions

 msg_buffer ()
 
 msg_buffer (void *_ptr)
 
size_t push_back (const routed_msg_type &_msg)
 
routed_msg_typeoperator[] (size_t i)
 
size_t size_in_bytes ()
 
size_t size () const
 
bool empty () const
 
void clear ()
 
bool is_init () const
 
void * get_ptr () const
 

Private Attributes

size_t m_size
 
void * m_ptr
 

Detailed Description

template<typename TMsg>
class havoqgt::mpi::mailbox_routed< TMsg >::msg_buffer

Definition at line 132 of file mailbox.hpp.

Constructor & Destructor Documentation

template<typename TMsg>
havoqgt::mpi::mailbox_routed< TMsg >::msg_buffer::msg_buffer ( )
inline

Definition at line 134 of file mailbox.hpp.

template<typename TMsg>
havoqgt::mpi::mailbox_routed< TMsg >::msg_buffer::msg_buffer ( void *  _ptr)
inline

Definition at line 135 of file mailbox.hpp.

Member Function Documentation

template<typename TMsg>
void havoqgt::mpi::mailbox_routed< TMsg >::msg_buffer::clear ( )
inline

Definition at line 148 of file mailbox.hpp.

template<typename TMsg>
bool havoqgt::mpi::mailbox_routed< TMsg >::msg_buffer::empty ( ) const
inline

Definition at line 147 of file mailbox.hpp.

147 { return m_size == 0; }
template<typename TMsg>
void* havoqgt::mpi::mailbox_routed< TMsg >::msg_buffer::get_ptr ( ) const
inline

Definition at line 150 of file mailbox.hpp.

template<typename TMsg>
bool havoqgt::mpi::mailbox_routed< TMsg >::msg_buffer::is_init ( ) const
inline

Definition at line 149 of file mailbox.hpp.

149 {return m_ptr != NULL; }
template<typename TMsg>
routed_msg_type& havoqgt::mpi::mailbox_routed< TMsg >::msg_buffer::operator[] ( size_t  i)
inline

Definition at line 142 of file mailbox.hpp.

142 { return static_cast<routed_msg_type*>(m_ptr)[i]; }
template<typename TMsg>
size_t havoqgt::mpi::mailbox_routed< TMsg >::msg_buffer::push_back ( const routed_msg_type _msg)
inline

Definition at line 137 of file mailbox.hpp.

137  {
138  static_cast<routed_msg_type*>(m_ptr)[m_size] = _msg;
139  return ++m_size;
140  }
template<typename TMsg>
size_t havoqgt::mpi::mailbox_routed< TMsg >::msg_buffer::size ( ) const
inline

Definition at line 146 of file mailbox.hpp.

template<typename TMsg>
size_t havoqgt::mpi::mailbox_routed< TMsg >::msg_buffer::size_in_bytes ( )
inline

Definition at line 144 of file mailbox.hpp.

Member Data Documentation

template<typename TMsg>
void* havoqgt::mpi::mailbox_routed< TMsg >::msg_buffer::m_ptr
private

Definition at line 155 of file mailbox.hpp.

template<typename TMsg>
size_t havoqgt::mpi::mailbox_routed< TMsg >::msg_buffer::m_size
private

Definition at line 154 of file mailbox.hpp.


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