OutputCommBuffer#

#include <OutputCommBuffer.h>
Brief description

: Classe outil utilisee exclusivement par Schema_Comm .

How to reference this class#

Copy the following pieces of RST/Markdown code to cite this element in other parts of the sphinx documentation (there is a copy button on the top-right when hovering the code block):

:ref:`OutputCommBuffer <class-outputcommbuffer>`
[OutputCommBuffer](#class-outputcommbuffer)

Detailed description#

C’est une classe derivee de Entree dont le stream est de type ostrstream (les donnees sont ecrites par operator<<dans un buffer en memoire). On utilise la classe comme suit: (1) on ecrit des donnees avec operator<<dans le buffer ouput_comm_buffer <<x <<y <<chaine <<… ; (2) on recupere l’ensemble des donnees ecrites sous la forme d’un bloc de memoire contigu de taille “get_buffer_size()” situe a l’adresse “get_buffer()”. (3) on reinitialise le buffer avec “clear()” et on peut refaire (1)

Inherits from#

Inheritance graph#

If the image is too small, right-click and open in new tab

../../../../../_images/classOutputCommBuffer__inherit__graph.png

List of Public Methods#

Complete Member Function Documentation#

clear#

Definition
void OutputCommBuffer::clear()
Brief description
Detailed description
Referenced By
How to reference this method:

Copy the following pieces of RST/Markdown code to cite this element in other parts of the sphinx documentation (there is a copy button on the top-right when hovering the code block):

:ref:`void OutputCommBuffer::clear() <outputcommbuffer-public-void-outputcommbuffer-clear>`
[void OutputCommBuffer::clear()](#outputcommbuffer-public-void-outputcommbuffer-clear)

get_buffer#

Definition
const char * OutputCommBuffer::get_buffer()
Brief description
Detailed description
Referenced By
How to reference this method:

Copy the following pieces of RST/Markdown code to cite this element in other parts of the sphinx documentation (there is a copy button on the top-right when hovering the code block):

:ref:`const char * OutputCommBuffer::get_buffer() <outputcommbuffer-public-const-char-ptr-outputcommbuffer-get-buffer>`
[const char * OutputCommBuffer::get_buffer()](#outputcommbuffer-public-const-char-ptr-outputcommbuffer-get-buffer)

get_buffer_size#

Definition
int OutputCommBuffer::get_buffer_size()
Brief description
Detailed description
Referenced By
How to reference this method:

Copy the following pieces of RST/Markdown code to cite this element in other parts of the sphinx documentation (there is a copy button on the top-right when hovering the code block):

:ref:`int OutputCommBuffer::get_buffer_size() <outputcommbuffer-public-int-outputcommbuffer-get-buffer-size>`
[int OutputCommBuffer::get_buffer_size()](#outputcommbuffer-public-int-outputcommbuffer-get-buffer-size)

get_stream#

Definition
ostringstream & OutputCommBuffer::get_stream()
Brief description
Detailed description
How to reference this method:

Copy the following pieces of RST/Markdown code to cite this element in other parts of the sphinx documentation (there is a copy button on the top-right when hovering the code block):

:ref:`ostringstream & OutputCommBuffer::get_stream() <outputcommbuffer-public-ostringstream-ref-outputcommbuffer-get-stream>`
[ostringstream & OutputCommBuffer::get_stream()](#outputcommbuffer-public-ostringstream-ref-outputcommbuffer-get-stream)

OutputCommBuffer#

Definition
OutputCommBuffer::OutputCommBuffer()
Brief description
Detailed description
References
How to reference this method:

Copy the following pieces of RST/Markdown code to cite this element in other parts of the sphinx documentation (there is a copy button on the top-right when hovering the code block):

:ref:`OutputCommBuffer::OutputCommBuffer() <outputcommbuffer-public-outputcommbuffer-outputcommbuffer>`
[OutputCommBuffer::OutputCommBuffer()](#outputcommbuffer-public-outputcommbuffer-outputcommbuffer)

~OutputCommBuffer#

Definition
OutputCommBuffer::~OutputCommBuffer() override
Brief description
Detailed description
References
How to reference this method:

Copy the following pieces of RST/Markdown code to cite this element in other parts of the sphinx documentation (there is a copy button on the top-right when hovering the code block):

:ref:`OutputCommBuffer::~OutputCommBuffer() override <outputcommbuffer-public-outputcommbuffer-dtor-outputcommbuffer-override>`
[OutputCommBuffer::~OutputCommBuffer() override](#outputcommbuffer-public-outputcommbuffer-dtor-outputcommbuffer-override)

Attributes Documentation#

stream_ (private)
ostringstream* OutputCommBuffer::stream_ = nullptr

This pointer is just a (typed) view on the smart ptr hold by the base class ( Sortie ). The base class is managing the memory.

string_ (private)
std::string OutputCommBuffer::string_