Parser_U#

#include <Parser_U.h>
Brief description

classe Parser_U Version de la classe Parser , derivant de Objet_U .

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:`Parser\_U <class-parser-u>`
[Parser\_U](#class-parser-u)

Detailed description#

Elle permet lors de son utilisation de beneficier de la gestion de la memoire propre aux Objet_U a la difference de la classe Math/Parser

Inherits from#

Inheritance graph#

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

../../../../../_images/classParser__U__inherit__graph.png

List of Public Static Methods#

List of Public Methods#

List of Protected Methods#

Complete Member Function Documentation#

cree_instance#

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

info#

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

self_cast#

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

self_cast#

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

addCst#

Definition
void Parser_U::addCst(const Constante &cst)
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:`void Parser_U::addCst(const Constante &cst) <parser-u-public-void-parser-u-addcst-const-constante-ref-cst>`
[void Parser_U::addCst(const Constante &cst)](#parser-u-public-void-parser-u-addcst-const-constante-ref-cst)

addVar#

Definition
void Parser_U::addVar(const char *v)
Brief description
Detailed description

permet d’ajouter une variable en specifiant sa chaine representative (par ex. : x, y1 etc…)

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 Parser_U::addVar(const char *v) <parser-u-public-void-parser-u-addvar-const-char-ptr-v>`
[void Parser_U::addVar(const char *v)](#parser-u-public-void-parser-u-addvar-const-char-ptr-v)

duplique#

Definition
int Parser_U::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 Parser_U::duplique() const override <parser-u-public-int-parser-u-duplique-const-override>`
[int Parser_U::duplique() const override](#parser-u-public-int-parser-u-duplique-const-override)

eval#

Definition
double Parser_U::eval()
Brief description
Detailed description

Sert a evaluer l’expression mathematique correspondante a la chaine de caracteres. Poru cela il faut avant toute chose construire l’arbre par la methode parseString() .

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:`double Parser_U::eval() <parser-u-public-double-parser-u-eval>`
[double Parser_U::eval()](#parser-u-public-double-parser-u-eval)

get_info#

Definition
const Type_info * Parser_U::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 * Parser_U::get_info() const override <parser-u-public-const-type-info-ptr-parser-u-get-info-const-override>`
[const Type_info * Parser_U::get_info() const override](#parser-u-public-const-type-info-ptr-parser-u-get-info-const-override)

getmaxVar#

Definition
int Parser_U::getmaxVar()
Brief description
Detailed description

permet d’obtenir le nombre de variables fixees permet d’obtenir le nombre de variable fixees

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:`int Parser_U::getmaxVar() <parser-u-public-int-parser-u-getmaxvar>`
[int Parser_U::getmaxVar()](#parser-u-public-int-parser-u-getmaxvar)

getNbVar#

Definition
int Parser_U::getNbVar()
Brief description
Detailed description

permet d’obtenir le nombre de variables enregistrees

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:`int Parser_U::getNbVar() <parser-u-public-int-parser-u-getnbvar>`
[int Parser_U::getNbVar()](#parser-u-public-int-parser-u-getnbvar)

getParser#

Definition
Parser & Parser_U::getParser()
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:`Parser & Parser_U::getParser() <parser-u-public-parser-ref-parser-u-getparser>`
[Parser & Parser_U::getParser()](#parser-u-public-parser-ref-parser-u-getparser)

getString#

Definition
std::string & Parser_U::getString()
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:`std::string & Parser_U::getString() <parser-u-public-std-string-ref-parser-u-getstring>`
[std::string & Parser_U::getString()](#parser-u-public-std-string-ref-parser-u-getstring)

operator =#

Definition
const Parser_U & Parser_U::operator=(const Parser_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 Parser_U & Parser_U::operator=(const Parser_U &) <parser-u-public-const-parser-u-ref-parser-u-operator-equal-const-parser-u-ref>`
[const Parser_U & Parser_U::operator=(const Parser_U &)](#parser-u-public-const-parser-u-ref-parser-u-operator-equal-const-parser-u-ref)

Parser_U#

Definition
Parser_U::Parser_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:`Parser_U::Parser_U() <parser-u-public-parser-u-parser-u>`
[Parser_U::Parser_U()](#parser-u-public-parser-u-parser-u)

Parser_U#

Definition
Parser_U::Parser_U(const Parser_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:`Parser_U::Parser_U(const Parser_U &) <parser-u-public-parser-u-parser-u-const-parser-u-ref>`
[Parser_U::Parser_U(const Parser_U &)](#parser-u-public-parser-u-parser-u-const-parser-u-ref)

parseString#

Definition
void Parser_U::parseString()
Brief description
Detailed description

Construit l’arbre correspondant a la chaine de caracteres. Cet arbre doit etre construit une seule fois et la chaine de caractere est evaluee en parcourant cet arbre par la methode eval() autant de fois qu’on le souhaite.

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 Parser_U::parseString() <parser-u-public-void-parser-u-parsestring>`
[void Parser_U::parseString()](#parser-u-public-void-parser-u-parsestring)

setImpulsion#

Definition
void Parser_U::setImpulsion(double tinit, double periode)
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:`void Parser_U::setImpulsion(double tinit, double periode) <parser-u-public-void-parser-u-setimpulsion-double-tinit-double-periode>`
[void Parser_U::setImpulsion(double tinit, double periode)](#parser-u-public-void-parser-u-setimpulsion-double-tinit-double-periode)

setNbVar#

Definition
void Parser_U::setNbVar(int nvar)
Brief description
Detailed description

Fixe le nombre max de variables a indiquer avec la methode addVar.

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 Parser_U::setNbVar(int nvar) <parser-u-public-void-parser-u-setnbvar-int-nvar>`
[void Parser_U::setNbVar(int nvar)](#parser-u-public-void-parser-u-setnbvar-int-nvar)

setString#

Definition
void Parser_U::setString(const Nom &nom)
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:`void Parser_U::setString(const Nom &nom) <parser-u-public-void-parser-u-setstring-const-nom-ref-nom>`
[void Parser_U::setString(const Nom &nom)](#parser-u-public-void-parser-u-setstring-const-nom-ref-nom)

setString#

Definition
void Parser_U::setString(const std::string &s)
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 Parser_U::setString(const std::string &s) <parser-u-public-void-parser-u-setstring-const-std-string-ref-s>`
[void Parser_U::setString(const std::string &s)](#parser-u-public-void-parser-u-setstring-const-std-string-ref-s)

setVar#

Definition
void Parser_U::setVar(const char *sv, double val)
Brief description
Detailed description

Fixe la valeur de la variable representee par une chaine sv.

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 Parser_U::setVar(const char *sv, double val) <parser-u-public-void-parser-u-setvar-const-char-ptr-sv-double-val>`
[void Parser_U::setVar(const char *sv, double val)](#parser-u-public-void-parser-u-setvar-const-char-ptr-sv-double-val)

setVar#

Definition
void Parser_U::setVar(const std::string &v, double val)
Brief description
Detailed description

Fixe la valeur de la variable representee par une chaine v. Fixe la valeur de la variable representee par un string v.

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:`void Parser_U::setVar(const std::string &v, double val) <parser-u-public-void-parser-u-setvar-const-std-string-ref-v-double-val>`
[void Parser_U::setVar(const std::string &v, double val)](#parser-u-public-void-parser-u-setvar-const-std-string-ref-v-double-val)

setVar#

Definition
void Parser_U::setVar(True_int i, double val)
Brief description
Detailed description

Fixe la valeur de la variable de numero specifie. Ce numero correspondt a l’ordre de l’ajout des variables par la methode addVar() . Fixe la valeur de la variable de numero specifie. Ce numero correspond a l’ordre de l’ajout des variables par la methode addVar() .

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:`void Parser_U::setVar(True_int i, double val) <parser-u-public-void-parser-u-setvar-true-int-i-double-val>`
[void Parser_U::setVar(True_int i, double val)](#parser-u-public-void-parser-u-setvar-true-int-i-double-val)

setVar#

Definition
void Parser_U::setVar(trustIdType i, double val)
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:`void Parser_U::setVar(trustIdType i, double val) <parser-u-public-void-parser-u-setvar-trustidtype-i-double-val>`
[void Parser_U::setVar(trustIdType i, double val)](#parser-u-public-void-parser-u-setvar-trustidtype-i-double-val)

taille_memoire#

Definition
unsigned Parser_U::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 Parser_U::taille_memoire() const override <parser-u-public-unsigned-parser-u-taille-memoire-const-override>`
[unsigned Parser_U::taille_memoire() const override](#parser-u-public-unsigned-parser-u-taille-memoire-const-override)

~Parser_U#

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

printOn#

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

Surcharge Objet_U::printOn(Sortie&) Ecriture d’un Parser_U sur un flot de sortie.

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

readOn#

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

Surcharge Objet_U::readOn(Entree&) Lecture d’un Parser_U dans un flot d’entree.

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:`Entree & Parser_U::readOn(Entree &) override <parser-u-protected-entree-ref-parser-u-readon-entree-ref-override>`
[Entree & Parser_U::readOn(Entree &) override](#parser-u-protected-entree-ref-parser-u-readon-entree-ref-override)

Attributes Documentation#

info_obj (public)
const Type_info Parser_U::info_obj
parser (private)
Parser* Parser_U::parser