Interprete_bloc#
#include <Interprete_bloc.h>
Interprete un bloc d’instructions dans le jeu de donnees.
How to cite this class in this doc#
:ref:`Interprete\_bloc <class-interprete-bloc>`
[Interprete\_bloc](#class-interprete-bloc)
Detailed description#
Voir Interprete_bloc::interpreter()
Inherits from#
public : Liste_bloc
List of Public Methods#
List of Public Static Methods#
List of Protected Methods#
Complete Member Function Documentation#
Objet_U & Interprete_bloc::ajouter(const Nom &nom, DerObjU &object_to_add)
Ajoute l’objet ob a la liste des objets de l’interprete, et nomme l’objet avec nom.
Si l’objet existe deja, exit()
References
Referenced By
How to cite in this doc:
:ref:`Objet_U & Interprete_bloc::ajouter(const Nom &nom, DerObjU &object_to_add) <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)](#public-objet-u-ref-interprete-bloc-ajouter-const-nom-ref-nom-derobju-ref-object-to-add)
int Interprete_bloc::duplique() const override
Reimplements:
How to cite in this doc:
:ref:`int Interprete_bloc::duplique() const override <public-int-interprete-bloc-duplique-const-override>`
[int Interprete_bloc::duplique() const override](#public-int-interprete-bloc-duplique-const-override)
const Type_info * Interprete_bloc::get_info() const override
Donne des informations sur le type de l’ Objet_U .
Reimplements:
How to cite in this doc:
:ref:`const Type_info * Interprete_bloc::get_info() const override <public-const-type-info-ptr-interprete-bloc-get-info-const-override>`
[const Type_info * Interprete_bloc::get_info() const override](#public-const-type-info-ptr-interprete-bloc-get-info-const-override)
Interprete_bloc::Interprete_bloc()
References
How to cite in this doc:
:ref:`Interprete_bloc::Interprete_bloc() <public-interprete-bloc-interprete-bloc>`
[Interprete_bloc::Interprete_bloc()](#public-interprete-bloc-interprete-bloc)
Entree & Interprete_bloc::interpreter_bloc(Entree &is, Bloc_Type bloc_type, int verifier_sans_interpreter)
Interpretation d’un bloc d’instructions prises dans l’entree is.
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 cite in this doc:
:ref:`Entree & Interprete_bloc::interpreter_bloc(Entree &is, Bloc_Type bloc_type, int verifier_sans_interpreter) <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)](#public-entree-ref-interprete-bloc-interpreter-bloc-entree-ref-is-bloc-type-bloc-type-int-verifier-sans-interpreter)
const Noms & Interprete_bloc::les_noms() const
References
Referenced By
How to cite in this doc:
:ref:`const Noms & Interprete_bloc::les_noms() const <public-const-noms-ref-interprete-bloc-les-noms-const>`
[const Noms & Interprete_bloc::les_noms() const](#public-const-noms-ref-interprete-bloc-les-noms-const)
Objet_U & Interprete_bloc::objet_local(const Nom &nom)
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).
References
Referenced By
How to cite in this doc:
:ref:`Objet_U & Interprete_bloc::objet_local(const Nom &nom) <public-objet-u-ref-interprete-bloc-objet-local-const-nom-ref-nom>`
[Objet_U & Interprete_bloc::objet_local(const Nom &nom)](#public-objet-u-ref-interprete-bloc-objet-local-const-nom-ref-nom)
int Interprete_bloc::objet_local_existant(const Nom &nom)
renvoie un drapeau indiquant si un objet de ce nom est enregistre dans cet inteprete (ne teste pas le pere).
References
Referenced By
How to cite in this doc:
:ref:`int Interprete_bloc::objet_local_existant(const Nom &nom) <public-int-interprete-bloc-objet-local-existant-const-nom-ref-nom>`
[int Interprete_bloc::objet_local_existant(const Nom &nom)](#public-int-interprete-bloc-objet-local-existant-const-nom-ref-nom)
unsigned Interprete_bloc::taille_memoire() const override
Reimplements:
How to cite in this doc:
:ref:`unsigned Interprete_bloc::taille_memoire() const override <public-unsigned-interprete-bloc-taille-memoire-const-override>`
[unsigned Interprete_bloc::taille_memoire() const override](#public-unsigned-interprete-bloc-taille-memoire-const-override)
Interprete_bloc::~Interprete_bloc()
References
How to cite in this doc:
:ref:`Interprete_bloc::~Interprete_bloc() <public-interprete-bloc-dtor-interprete-bloc>`
[Interprete_bloc::~Interprete_bloc()](#public-interprete-bloc-dtor-interprete-bloc)
Objet_U * Interprete_bloc::cree_instance()
How to cite in this doc:
:ref:`Objet_U * Interprete_bloc::cree_instance() <public-static-objet-u-ptr-interprete-bloc-cree-instance>`
[Objet_U * Interprete_bloc::cree_instance()](#public-static-objet-u-ptr-interprete-bloc-cree-instance)
const Type_info * Interprete_bloc::info()
How to cite in this doc:
:ref:`const Type_info * Interprete_bloc::info() <public-static-const-type-info-ptr-interprete-bloc-info>`
[const Type_info * Interprete_bloc::info()](#public-static-const-type-info-ptr-interprete-bloc-info)
Interprete_bloc & Interprete_bloc::interprete_courant()
renvoie l’interprete_bloc en train d’etre lu dans le jeu de donnees.
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 cite in this doc:
:ref:`Interprete_bloc & Interprete_bloc::interprete_courant() <public-static-interprete-bloc-ref-interprete-bloc-interprete-courant>`
[Interprete_bloc & Interprete_bloc::interprete_courant()](#public-static-interprete-bloc-ref-interprete-bloc-interprete-courant)
Objet_U & Interprete_bloc::objet_global(const Nom &nom)
cherche l’objet demande dans l’ Interprete_bloc courant ( Interprete_bloc::interprete_courant() ) et dans tous
ses peres successifs. Si l’objet n’existe pas, exit()
References
Referenced By
How to cite in this doc:
:ref:`Objet_U & Interprete_bloc::objet_global(const Nom &nom) <public-static-objet-u-ref-interprete-bloc-objet-global-const-nom-ref-nom>`
[Objet_U & Interprete_bloc::objet_global(const Nom &nom)](#public-static-objet-u-ref-interprete-bloc-objet-global-const-nom-ref-nom)
int Interprete_bloc::objet_global_existant(const Nom &nom)
renvoie un drapeau indiquant si un objet de ce nom existe dans inteprete_courant() ou l’un de ses parents.
Referenced By
How to cite in this doc:
:ref:`int Interprete_bloc::objet_global_existant(const Nom &nom) <public-static-int-interprete-bloc-objet-global-existant-const-nom-ref-nom>`
[int Interprete_bloc::objet_global_existant(const Nom &nom)](#public-static-int-interprete-bloc-objet-global-existant-const-nom-ref-nom)
const Interprete_bloc & Interprete_bloc::self_cast(const Objet_U &)
How to cite in this doc:
:ref:`const Interprete_bloc & Interprete_bloc::self_cast(const Objet_U &) <public-static-const-interprete-bloc-ref-interprete-bloc-self-cast-const-objet-u-ref>`
[const Interprete_bloc & Interprete_bloc::self_cast(const Objet_U &)](#public-static-const-interprete-bloc-ref-interprete-bloc-self-cast-const-objet-u-ref)
Interprete_bloc & Interprete_bloc::self_cast(Objet_U &)
How to cite in this doc:
:ref:`Interprete_bloc & Interprete_bloc::self_cast(Objet_U &) <public-static-interprete-bloc-ref-interprete-bloc-self-cast-objet-u-ref>`
[Interprete_bloc & Interprete_bloc::self_cast(Objet_U &)](#public-static-interprete-bloc-ref-interprete-bloc-self-cast-objet-u-ref)
Sortie & Interprete_bloc::printOn(Sortie &x) const override
Ecriture de l’objet sur un flot de sortie Methode a surcharger.
Reimplements:
References
How to cite in this doc:
:ref:`Sortie & Interprete_bloc::printOn(Sortie &x) const override <protected-sortie-ref-interprete-bloc-printon-sortie-ref-x-const-override>`
[Sortie & Interprete_bloc::printOn(Sortie &x) const override](#protected-sortie-ref-interprete-bloc-printon-sortie-ref-x-const-override)
Entree & Interprete_bloc::readOn(Entree &) override
Lecture d’un Objet_U sur un flot d’entree Methode a surcharger.
Reimplements:
References
How to cite in this doc:
:ref:`Entree & Interprete_bloc::readOn(Entree &) override <protected-entree-ref-interprete-bloc-readon-entree-ref-override>`
[Entree & Interprete_bloc::readOn(Entree &) override](#protected-entree-ref-interprete-bloc-readon-entree-ref-override)
Attributes Documentation#
const Type_info Interprete_bloc::info_obj
Noms Interprete_bloc::les_noms_
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:
: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