InputCommBuffer#
#include <InputCommBuffer.h>
: 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#
public : Entree
Inheritance graph#
If the image is too small, right-click and open in new tab
List of Public Methods#
Complete Member Function Documentation#
clear#
void InputCommBuffer::clear()
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#
void InputCommBuffer::create_stream()
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#
void InputCommBuffer::create_stream_from_output_stream(OutputCommBuffer &)
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 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#
InputCommBuffer::InputCommBuffer()
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#
char * InputCommBuffer::reserve_buffer(int bufsize)
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#
InputCommBuffer::~InputCommBuffer() override
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#
char* InputCommBuffer::buffer_
int InputCommBuffer::memorysize_
int InputCommBuffer::size_
istringstream* InputCommBuffer::stream_