Loading...
Searching...
No Matches
Public Member Functions | Friends | List of all members
bitpit::RecvBuffer Class Reference

Buffer to be used for receive communications. More...

Inheritance diagram for bitpit::RecvBuffer:
Inheritance graph
[legend]
Collaboration diagram for bitpit::RecvBuffer:
Collaboration graph
[legend]

Public Member Functions

 RecvBuffer (size_t size=0, bool doubleBuffer=false)
 
void read (char *data, std::size_t size)
 
- Public Member Functions inherited from bitpit::CommunicationBuffer< RawRecvBuffer >
 CommunicationBuffer (size_t size=0, bool doubleBuffer=false)
 
size_t getSize () const
 
bool isDouble () const
 
bool seekg (size_t pos)
 
void setSize (size_t size)
 
std::ifstream::pos_type tellg (void) const
 

Friends

template<typename T >
RecvBufferoperator>>) (RecvBuffer &buffer, T &value)
 

Additional Inherited Members

- Protected Member Functions inherited from bitpit::CommunicationBuffer< RawRecvBuffer >
RawRecvBuffergetBack ()
 
std::vector< RawRecvBuffer > & getBuffers ()
 
const std::vector< RawRecvBuffer > & getBuffers () const
 
RawRecvBuffergetFront ()
 
void swap ()
 

Detailed Description

Buffer to be used for receive communications.

Definition at line 106 of file communications_buffers.hpp.

Constructor & Destructor Documentation

◆ RecvBuffer()

bitpit::RecvBuffer::RecvBuffer ( size_t size = 0,
bool doubleBuffer = false )

Creates a new receive buffer

Definition at line 77 of file communications_buffers.cpp.

Member Function Documentation

◆ read()

void bitpit::RecvBuffer::read ( char * data,
std::size_t size )

Read data from the buffer.

Parameters
[out]datais the memory location that will contain the data
[in]sizeis the size (in bytes) of the data to be read from the stream

Definition at line 89 of file communications_buffers.cpp.


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