InputCommBuffer#

#include <InputCommBuffer.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:`InputCommBuffer <class-inputcommbuffer>`
[InputCommBuffer](#class-inputcommbuffer)

Detailed description#

C’est une classe derivee de Entree dont le stream est de type istringstream (les donnees lues par operator>> sont prises dans un buffer). On utilise la classe comme suit: (1) on reserve un buffer d’une certaine taille avec char * buf = input_comm_buffer.reserve_buffer(taille); (2) on remplit le buffer avec des donnees: for (i = 0; i<taille; i + + ) buf[i] = …..; (3) on cree un stream a partir du buffer: input_comm_buffer.create_stream(); (4) on peut ensuite lire les donnees a travers l’operateur>>: input_comm_buffer>> x>> y>> chaine>> … ; (5) quand on a fini de lire avec operateur>> on fait input_comm_buffer.clear(); et on peut refaire (1)

Inherits from#

Inheritance graph#

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

../../../../../_images/classInputCommBuffer__inherit__graph.png

List of Public Methods#

Complete Member Function Documentation#

clear#

Definition
void InputCommBuffer::clear()
Brief description
Detailed description
References
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 InputCommBuffer::clear() <inputcommbuffer-public-void-inputcommbuffer-clear>`
[void InputCommBuffer::clear()](#inputcommbuffer-public-void-inputcommbuffer-clear)

create_stream#

Definition
void InputCommBuffer::create_stream()
Brief description
Detailed description
References
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 InputCommBuffer::create_stream() <inputcommbuffer-public-void-inputcommbuffer-create-stream>`
[void InputCommBuffer::create_stream()](#inputcommbuffer-public-void-inputcommbuffer-create-stream)

create_stream_from_output_stream#

Definition
void InputCommBuffer::create_stream_from_output_stream(OutputCommBuffer &)
Brief description
Detailed description
References
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 InputCommBuffer::create_stream_from_output_stream(OutputCommBuffer &) <inputcommbuffer-public-void-inputcommbuffer-create-stream-from-output-stream-outputcommbuffer-ref>`
[void InputCommBuffer::create_stream_from_output_stream(OutputCommBuffer &)](#inputcommbuffer-public-void-inputcommbuffer-create-stream-from-output-stream-outputcommbuffer-ref)

InputCommBuffer#

Definition
InputCommBuffer::InputCommBuffer()
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:`InputCommBuffer::InputCommBuffer() <inputcommbuffer-public-inputcommbuffer-inputcommbuffer>`
[InputCommBuffer::InputCommBuffer()](#inputcommbuffer-public-inputcommbuffer-inputcommbuffer)

reserve_buffer#

Definition
char * InputCommBuffer::reserve_buffer(int bufsize)
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:`char * InputCommBuffer::reserve_buffer(int bufsize) <inputcommbuffer-public-char-ptr-inputcommbuffer-reserve-buffer-int-bufsize>`
[char * InputCommBuffer::reserve_buffer(int bufsize)](#inputcommbuffer-public-char-ptr-inputcommbuffer-reserve-buffer-int-bufsize)

~InputCommBuffer#

Definition
InputCommBuffer::~InputCommBuffer() override
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:`InputCommBuffer::~InputCommBuffer() override <inputcommbuffer-public-inputcommbuffer-dtor-inputcommbuffer-override>`
[InputCommBuffer::~InputCommBuffer() override](#inputcommbuffer-public-inputcommbuffer-dtor-inputcommbuffer-override)

Attributes Documentation#

buffer_ (private)
char* InputCommBuffer::buffer_
memorysize_ (private)
int InputCommBuffer::memorysize_
size_ (private)
int InputCommBuffer::size_
stream_ (private)
istringstream* InputCommBuffer::stream_