Interprete_bloc#

#include <Interprete_bloc.h>
Brief description

Interprete un bloc d’instructions dans le jeu de donnees.

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:`Interprete\_bloc <class-interprete-bloc>`
[Interprete\_bloc](#class-interprete-bloc)

Detailed description#

Voir Interprete_bloc::interpreter()

Inherits from#

Inheritance graph#

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

../../../../../_images/classInterprete__bloc__inherit__graph.png

List of Public Methods#

List of Public Static Methods#

List of Protected Methods#

Complete Member Function Documentation#

ajouter#

Definition
Objet_U & Interprete_bloc::ajouter(const Nom &nom, DerObjU &object_to_add)
Brief description

Ajoute l’objet ob a la liste des objets de l’interprete, et nomme l’objet avec nom.

Detailed description

Si l’objet existe deja, exit()

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:`Objet_U & Interprete_bloc::ajouter(const Nom &nom, DerObjU &object_to_add) <interprete-bloc-public-objet-u-ref-interprete-bloc-ajouter-const-nom-ref-nom-derobju-ref-object-to-add>`
[Objet_U & Interprete_bloc::ajouter(const Nom &nom, DerObjU &object_to_add)](#interprete-bloc-public-objet-u-ref-interprete-bloc-ajouter-const-nom-ref-nom-derobju-ref-object-to-add)

duplique#

Definition
int Interprete_bloc::duplique() const override
Brief description
Detailed description

Reimplements:

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 Interprete_bloc::duplique() const override <interprete-bloc-public-int-interprete-bloc-duplique-const-override>`
[int Interprete_bloc::duplique() const override](#interprete-bloc-public-int-interprete-bloc-duplique-const-override)

get_info#

Definition
const Type_info * Interprete_bloc::get_info() const override
Brief description

Donne des informations sur le type de l’ Objet_U .

Detailed description

Reimplements:

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 Type_info * Interprete_bloc::get_info() const override <interprete-bloc-public-const-type-info-ptr-interprete-bloc-get-info-const-override>`
[const Type_info * Interprete_bloc::get_info() const override](#interprete-bloc-public-const-type-info-ptr-interprete-bloc-get-info-const-override)

Interprete_bloc#

Definition
Interprete_bloc::Interprete_bloc()
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:`Interprete_bloc::Interprete_bloc() <interprete-bloc-public-interprete-bloc-interprete-bloc>`
[Interprete_bloc::Interprete_bloc()](#interprete-bloc-public-interprete-bloc-interprete-bloc)

interpreter_bloc#

Definition
Entree & Interprete_bloc::interpreter_bloc(Entree &is, Bloc_Type bloc_type, int verifier_sans_interpreter)
Brief description

Interpretation d’un bloc d’instructions prises dans l’entree is.

Detailed description

Si le bloc commence par {, on suppose que l’accolade a deja ete lue. Le bloc se termine soit par }, soit par la fin du fichier, soit par le mot FIN en fonction de bloc_type (voir mon_main.cpp par exemple) Si verifie_sans_interpreter! = 0, on ne cree aucun objet et on ne lance aucun interprete, on se contente de verifier la coherence des accolades (meme nombre de { que de }).

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:`Entree & Interprete_bloc::interpreter_bloc(Entree &is, Bloc_Type bloc_type, int verifier_sans_interpreter) <interprete-bloc-public-entree-ref-interprete-bloc-interpreter-bloc-entree-ref-is-bloc-type-bloc-type-int-verifier-sans-interpreter>`
[Entree & Interprete_bloc::interpreter_bloc(Entree &is, Bloc_Type bloc_type, int verifier_sans_interpreter)](#interprete-bloc-public-entree-ref-interprete-bloc-interpreter-bloc-entree-ref-is-bloc-type-bloc-type-int-verifier-sans-interpreter)

les_noms#

Definition
const Noms & Interprete_bloc::les_noms() const
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:`const Noms & Interprete_bloc::les_noms() const <interprete-bloc-public-const-noms-ref-interprete-bloc-les-noms-const>`
[const Noms & Interprete_bloc::les_noms() const](#interprete-bloc-public-const-noms-ref-interprete-bloc-les-noms-const)

objet_local#

Definition
Objet_U & Interprete_bloc::objet_local(const Nom &nom)
Brief description

Renvoie l’ Objet_U correspondant a nom contenu dans cet interprete_bloc Si l’objet n’existe pas, exit() (on ne cherche pas dans le pere).

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:`Objet_U & Interprete_bloc::objet_local(const Nom &nom) <interprete-bloc-public-objet-u-ref-interprete-bloc-objet-local-const-nom-ref-nom>`
[Objet_U & Interprete_bloc::objet_local(const Nom &nom)](#interprete-bloc-public-objet-u-ref-interprete-bloc-objet-local-const-nom-ref-nom)

objet_local_existant#

Definition
int Interprete_bloc::objet_local_existant(const Nom &nom)
Brief description

renvoie un drapeau indiquant si un objet de ce nom est enregistre dans cet inteprete (ne teste pas le pere).

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:`int Interprete_bloc::objet_local_existant(const Nom &nom) <interprete-bloc-public-int-interprete-bloc-objet-local-existant-const-nom-ref-nom>`
[int Interprete_bloc::objet_local_existant(const Nom &nom)](#interprete-bloc-public-int-interprete-bloc-objet-local-existant-const-nom-ref-nom)

taille_memoire#

Definition
unsigned Interprete_bloc::taille_memoire() const override
Brief description
Detailed description

Reimplements:

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:`unsigned Interprete_bloc::taille_memoire() const override <interprete-bloc-public-unsigned-interprete-bloc-taille-memoire-const-override>`
[unsigned Interprete_bloc::taille_memoire() const override](#interprete-bloc-public-unsigned-interprete-bloc-taille-memoire-const-override)

~Interprete_bloc#

Definition
Interprete_bloc::~Interprete_bloc()
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:`Interprete_bloc::~Interprete_bloc() <interprete-bloc-public-interprete-bloc-dtor-interprete-bloc>`
[Interprete_bloc::~Interprete_bloc()](#interprete-bloc-public-interprete-bloc-dtor-interprete-bloc)

cree_instance#

Definition
Objet_U * Interprete_bloc::cree_instance()
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:`Objet_U * Interprete_bloc::cree_instance() <interprete-bloc-public-static-objet-u-ptr-interprete-bloc-cree-instance>`
[Objet_U * Interprete_bloc::cree_instance()](#interprete-bloc-public-static-objet-u-ptr-interprete-bloc-cree-instance)

info#

Definition
const Type_info * Interprete_bloc::info()
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:`const Type_info * Interprete_bloc::info() <interprete-bloc-public-static-const-type-info-ptr-interprete-bloc-info>`
[const Type_info * Interprete_bloc::info()](#interprete-bloc-public-static-const-type-info-ptr-interprete-bloc-info)

interprete_courant#

Definition
Interprete_bloc & Interprete_bloc::interprete_courant()
Brief description

renvoie l’interprete_bloc en train d’etre lu dans le jeu de donnees.

Detailed description

On change d’interprete courant quand on cree et on detruit un objet de type Interprete_bloc (par exemple quand on entre ou qu’on sort d’un bloc { })

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:`Interprete_bloc & Interprete_bloc::interprete_courant() <interprete-bloc-public-static-interprete-bloc-ref-interprete-bloc-interprete-courant>`
[Interprete_bloc & Interprete_bloc::interprete_courant()](#interprete-bloc-public-static-interprete-bloc-ref-interprete-bloc-interprete-courant)

objet_global#

Definition
Objet_U & Interprete_bloc::objet_global(const Nom &nom)
Brief description

cherche l’objet demande dans l’ Interprete_bloc courant ( Interprete_bloc::interprete_courant() ) et dans tous

Detailed description

ses peres successifs. Si l’objet n’existe pas, exit()

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:`Objet_U & Interprete_bloc::objet_global(const Nom &nom) <interprete-bloc-public-static-objet-u-ref-interprete-bloc-objet-global-const-nom-ref-nom>`
[Objet_U & Interprete_bloc::objet_global(const Nom &nom)](#interprete-bloc-public-static-objet-u-ref-interprete-bloc-objet-global-const-nom-ref-nom)

objet_global_existant#

Definition
int Interprete_bloc::objet_global_existant(const Nom &nom)
Brief description

renvoie un drapeau indiquant si un objet de ce nom existe dans inteprete_courant() ou l’un de ses parents.

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:`int Interprete_bloc::objet_global_existant(const Nom &nom) <interprete-bloc-public-static-int-interprete-bloc-objet-global-existant-const-nom-ref-nom>`
[int Interprete_bloc::objet_global_existant(const Nom &nom)](#interprete-bloc-public-static-int-interprete-bloc-objet-global-existant-const-nom-ref-nom)

self_cast#

Definition
const Interprete_bloc & Interprete_bloc::self_cast(const Objet_U &)
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:`const Interprete_bloc & Interprete_bloc::self_cast(const Objet_U &) <interprete-bloc-public-static-const-interprete-bloc-ref-interprete-bloc-self-cast-const-objet-u-ref>`
[const Interprete_bloc & Interprete_bloc::self_cast(const Objet_U &)](#interprete-bloc-public-static-const-interprete-bloc-ref-interprete-bloc-self-cast-const-objet-u-ref)

self_cast#

Definition
Interprete_bloc & Interprete_bloc::self_cast(Objet_U &)
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:`Interprete_bloc & Interprete_bloc::self_cast(Objet_U &) <interprete-bloc-public-static-interprete-bloc-ref-interprete-bloc-self-cast-objet-u-ref>`
[Interprete_bloc & Interprete_bloc::self_cast(Objet_U &)](#interprete-bloc-public-static-interprete-bloc-ref-interprete-bloc-self-cast-objet-u-ref)

printOn#

Definition
Sortie & Interprete_bloc::printOn(Sortie &x) const override
Brief description

Ecriture de l’objet sur un flot de sortie Methode a surcharger.

Detailed description

Reimplements:

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:`Sortie & Interprete_bloc::printOn(Sortie &x) const override <interprete-bloc-protected-sortie-ref-interprete-bloc-printon-sortie-ref-x-const-override>`
[Sortie & Interprete_bloc::printOn(Sortie &x) const override](#interprete-bloc-protected-sortie-ref-interprete-bloc-printon-sortie-ref-x-const-override)

readOn#

Definition
Entree & Interprete_bloc::readOn(Entree &) override
Brief description

Lecture d’un Objet_U sur un flot d’entree Methode a surcharger.

Detailed description

Reimplements:

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:`Entree & Interprete_bloc::readOn(Entree &) override <interprete-bloc-protected-entree-ref-interprete-bloc-readon-entree-ref-override>`
[Entree & Interprete_bloc::readOn(Entree &) override](#interprete-bloc-protected-entree-ref-interprete-bloc-readon-entree-ref-override)

Attributes Documentation#

info_obj (public)
const Type_info Interprete_bloc::info_obj
les_noms_ (protected)
Noms Interprete_bloc::les_noms_
pere_ (protected)
TRUST_Ref<Interprete_bloc *> Interprete_bloc::pere_

Enums#

Interprete_bloc::Bloc_Type#

Location: trust-code/src/Kernel/Utilitaires/Interprete_bloc.h:35

How to cite in this doc: 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:`Interprete\_bloc::Bloc\_Type <enum-none-interprete-bloc-bloc-type>`
[Interprete\_bloc::Bloc\_Type](#enum-none-interprete-bloc-bloc-type)
  • ACCOLADE

  • BLOC_EOF

  • FIN