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

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

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

Public Member Functions

 SendBuffer (size_t size=0, bool doubleBuffer=false)
 
void squeeze ()
 
void write (const char *data, std::size_t size)
 
- Public Member Functions inherited from bitpit::CommunicationBuffer< RawSendBuffer >
 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 >
SendBufferoperator<<) (SendBuffer &buffer, const T &value)
 

Additional Inherited Members

- Protected Member Functions inherited from bitpit::CommunicationBuffer< RawSendBuffer >
RawSendBuffergetBack ()
 
std::vector< RawSendBuffer > & getBuffers ()
 
const std::vector< RawSendBuffer > & getBuffers () const
 
RawSendBuffergetFront ()
 
void swap ()
 

Detailed Description

Buffer to be used for send communications.

Definition at line 90 of file communications_buffers.hpp.

Constructor & Destructor Documentation

◆ SendBuffer()

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

Creates a new send buffer

Definition at line 39 of file communications_buffers.cpp.

Member Function Documentation

◆ squeeze()

void bitpit::SendBuffer::squeeze ( )

Requests the buffer to reduce its size to fit the data currently contained in the stream.

Definition at line 48 of file communications_buffers.cpp.

◆ write()

void bitpit::SendBuffer::write ( const char * data,
std::size_t size )

Write data into the buffer.

Parameters
[in]datais the memory that contain the data
[in]sizeis the size (in bytes) of the data to be written into the stream

Definition at line 62 of file communications_buffers.cpp.


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