Parser_U#

#include <Parser_U.h>

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

How to cite this class in this doc#

: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#

List of Public Static Methods#

List of Public Methods#

List of Protected Methods#

Complete Member Function Documentation#

cree_instance
Objet_U * Parser_U::cree_instance()
How to cite in this doc:
:ref:`Objet_U * Parser_U::cree_instance() <public-static-objet-u-ptr-parser-u-cree-instance>`
[Objet_U * Parser_U::cree_instance()](#public-static-objet-u-ptr-parser-u-cree-instance)
info
const Type_info * Parser_U::info()
How to cite in this doc:
:ref:`const Type_info * Parser_U::info() <public-static-const-type-info-ptr-parser-u-info>`
[const Type_info * Parser_U::info()](#public-static-const-type-info-ptr-parser-u-info)
self_cast
const Parser_U & Parser_U::self_cast(const Objet_U &)
How to cite in this doc:
:ref:`const Parser_U & Parser_U::self_cast(const Objet_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 &)](#public-static-const-parser-u-ref-parser-u-self-cast-const-objet-u-ref)
self_cast
Parser_U & Parser_U::self_cast(Objet_U &)
How to cite in this doc:
:ref:`Parser_U & Parser_U::self_cast(Objet_U &) <public-static-parser-u-ref-parser-u-self-cast-objet-u-ref>`
[Parser_U & Parser_U::self_cast(Objet_U &)](#public-static-parser-u-ref-parser-u-self-cast-objet-u-ref)
addCst
void Parser_U::addCst(const Constante &cst)
References
How to cite in this doc:
:ref:`void Parser_U::addCst(const Constante &cst) <public-void-parser-u-addcst-const-constante-ref-cst>`
[void Parser_U::addCst(const Constante &cst)](#public-void-parser-u-addcst-const-constante-ref-cst)
addVar
void Parser_U::addVar(const char *v)

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

References
Referenced By
How to cite in this doc:
:ref:`void Parser_U::addVar(const char *v) <public-void-parser-u-addvar-const-char-ptr-v>`
[void Parser_U::addVar(const char *v)](#public-void-parser-u-addvar-const-char-ptr-v)
duplique
int Parser_U::duplique() const override

Reimplements:

How to cite in this doc:
:ref:`int Parser_U::duplique() const override <public-int-parser-u-duplique-const-override>`
[int Parser_U::duplique() const override](#public-int-parser-u-duplique-const-override)
eval
double Parser_U::eval()

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 cite in this doc:
:ref:`double Parser_U::eval() <public-double-parser-u-eval>`
[double Parser_U::eval()](#public-double-parser-u-eval)
get_info
const Type_info * Parser_U::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 * Parser_U::get_info() const override <public-const-type-info-ptr-parser-u-get-info-const-override>`
[const Type_info * Parser_U::get_info() const override](#public-const-type-info-ptr-parser-u-get-info-const-override)
getmaxVar
int Parser_U::getmaxVar()

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

References
How to cite in this doc:
:ref:`int Parser_U::getmaxVar() <public-int-parser-u-getmaxvar>`
[int Parser_U::getmaxVar()](#public-int-parser-u-getmaxvar)
getNbVar
int Parser_U::getNbVar()

permet d’obtenir le nombre de variables enregistrees

References
How to cite in this doc:
:ref:`int Parser_U::getNbVar() <public-int-parser-u-getnbvar>`
[int Parser_U::getNbVar()](#public-int-parser-u-getnbvar)
getParser
Parser & Parser_U::getParser()
How to cite in this doc:
:ref:`Parser & Parser_U::getParser() <public-parser-ref-parser-u-getparser>`
[Parser & Parser_U::getParser()](#public-parser-ref-parser-u-getparser)
getString
std::string & Parser_U::getString()
References
Referenced By
How to cite in this doc:
:ref:`std::string & Parser_U::getString() <public-std-string-ref-parser-u-getstring>`
[std::string & Parser_U::getString()](#public-std-string-ref-parser-u-getstring)
operator =
const Parser_U & Parser_U::operator=(const Parser_U &)
How to cite in this doc:
:ref:`const Parser_U & Parser_U::operator=(const Parser_U &) <public-const-parser-u-ref-parser-u-operator-equal-const-parser-u-ref>`
[const Parser_U & Parser_U::operator=(const Parser_U &)](#public-const-parser-u-ref-parser-u-operator-equal-const-parser-u-ref)
Parser_U
Parser_U::Parser_U()
How to cite in this doc:
:ref:`Parser_U::Parser_U() <public-parser-u-parser-u>`
[Parser_U::Parser_U()](#public-parser-u-parser-u)
Parser_U
Parser_U::Parser_U(const Parser_U &)
How to cite in this doc:
:ref:`Parser_U::Parser_U(const Parser_U &) <public-parser-u-parser-u-const-parser-u-ref>`
[Parser_U::Parser_U(const Parser_U &)](#public-parser-u-parser-u-const-parser-u-ref)
parseString
void Parser_U::parseString()

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 cite in this doc:
:ref:`void Parser_U::parseString() <public-void-parser-u-parsestring>`
[void Parser_U::parseString()](#public-void-parser-u-parsestring)
setImpulsion
void Parser_U::setImpulsion(double tinit, double periode)
References
How to cite in this doc:
:ref:`void Parser_U::setImpulsion(double tinit, double periode) <public-void-parser-u-setimpulsion-double-tinit-double-periode>`
[void Parser_U::setImpulsion(double tinit, double periode)](#public-void-parser-u-setimpulsion-double-tinit-double-periode)
setNbVar
void Parser_U::setNbVar(int nvar)

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

References
Referenced By
How to cite in this doc:
:ref:`void Parser_U::setNbVar(int nvar) <public-void-parser-u-setnbvar-int-nvar>`
[void Parser_U::setNbVar(int nvar)](#public-void-parser-u-setnbvar-int-nvar)
setString
void Parser_U::setString(const Nom &nom)
References
How to cite in this doc:
:ref:`void Parser_U::setString(const Nom &nom) <public-void-parser-u-setstring-const-nom-ref-nom>`
[void Parser_U::setString(const Nom &nom)](#public-void-parser-u-setstring-const-nom-ref-nom)
setString
void Parser_U::setString(const std::string &s)
References
Referenced By
How to cite in this doc:
:ref:`void Parser_U::setString(const std::string &s) <public-void-parser-u-setstring-const-std-string-ref-s>`
[void Parser_U::setString(const std::string &s)](#public-void-parser-u-setstring-const-std-string-ref-s)
setVar
void Parser_U::setVar(const char *sv, double val)

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

References
Referenced By
How to cite in this doc:
:ref:`void Parser_U::setVar(const char *sv, double val) <public-void-parser-u-setvar-const-char-ptr-sv-double-val>`
[void Parser_U::setVar(const char *sv, double val)](#public-void-parser-u-setvar-const-char-ptr-sv-double-val)
setVar
void Parser_U::setVar(const std::string &v, double val)

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

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 cite in this doc:
:ref:`void Parser_U::setVar(True_int i, double val) <public-void-parser-u-setvar-true-int-i-double-val>`
[void Parser_U::setVar(True_int i, double val)](#public-void-parser-u-setvar-true-int-i-double-val)
setVar
void Parser_U::setVar(trustIdType i, double val)
References
How to cite in this doc:
:ref:`void Parser_U::setVar(trustIdType i, double val) <public-void-parser-u-setvar-trustidtype-i-double-val>`
[void Parser_U::setVar(trustIdType i, double val)](#public-void-parser-u-setvar-trustidtype-i-double-val)
taille_memoire
unsigned Parser_U::taille_memoire() const override

Reimplements:

How to cite in this doc:
:ref:`unsigned Parser_U::taille_memoire() const override <public-unsigned-parser-u-taille-memoire-const-override>`
[unsigned Parser_U::taille_memoire() const override](#public-unsigned-parser-u-taille-memoire-const-override)
~Parser_U
Parser_U::~Parser_U() override
How to cite in this doc:
:ref:`Parser_U::~Parser_U() override <public-parser-u-dtor-parser-u-override>`
[Parser_U::~Parser_U() override](#public-parser-u-dtor-parser-u-override)
printOn
Sortie & Parser_U::printOn(Sortie &x) const override

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

Reimplements:

How to cite in this doc:
:ref:`Sortie & Parser_U::printOn(Sortie &x) const override <protected-sortie-ref-parser-u-printon-sortie-ref-x-const-override>`
[Sortie & Parser_U::printOn(Sortie &x) const override](#protected-sortie-ref-parser-u-printon-sortie-ref-x-const-override)
readOn
Entree & Parser_U::readOn(Entree &) override

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

Reimplements:

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