Objet_U#

#include <Objet_U.h>
Brief description

classe Objet_U Cette classe est la classe de base des Objets de TRUST

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

Detailed description#

Dans les classes derivees de Objet_U, on ajoute toujours une macro Declare_instanciable ou Declare_base qui donne aux objets les proprietes suivantes: Un Objet_U peut etre lu dans une Entree ou ecrit dans une Sortie (entree/sortie standard, jeu de donnees .data, fichier disque, buffer memoire, buffer de communication parallele). Il faut donc toujours implementer les methodes readOn et printOn Un Objet_U d’un type quelconque peut etre instancie grace a une chaine de caracteres qui l’identifie (que_suis_je()), voir OWN_PTR::typer Un Objet_U peut etre “sauvegarde” ou “repris” sur disque (au sens sauvegarde et reprise d’un calcul). Ces operations sont differentes de readOn/printOn car elles permettent eventuellement une redistribution des donnees paralleles ou des changements de version. Un Objet_U, s’il est “Declare_instanciable”, peut etre cree dynamiquement et lu dans le jeu de donnees TRUST (a travers readOn). Il possede alors le nom (le_nom()) attribue dans le jeu de donnees (voir les classes Interprete_bloc et Lire) Un Objet_U fait l’objet d’une gestion memoire speciale par le noyau permettant le debuggage et l’optimisation (operations specifiques a la creation, a la destruction et a la copie)

Inherits from#

Inherited by#

Inheritance graph#

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

../../../../../_images/classObjet__U__inherit__graph.png

List of Public Methods#

List of Public Static Methods#

List of Protected Methods#

Complete Member Function Documentation#

associer_#

Definition
int Objet_U::associer_(Objet_U &)
Brief description

Associe l’ Objet_U a un autre Objet_U Methode virtuelle a surcharger.

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:`int Objet_U::associer_(Objet_U &) <objet-u-public-int-objet-u-associer-underscore-objet-u-ref>`
[int Objet_U::associer_(Objet_U &)](#objet-u-public-int-objet-u-associer-underscore-objet-u-ref)

change_num#

Definition
int Objet_U::change_num(const int *const)
Brief description

Change le numero interne de l’ Objet_U .

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:`int Objet_U::change_num(const int *const) <objet-u-public-int-objet-u-change-num-const-int-ptr-const>`
[int Objet_U::change_num(const int *const)](#objet-u-public-int-objet-u-change-num-const-int-ptr-const)

duplique#

Definition
virtual int Objet_U::duplique() const =0
Brief description
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:`virtual int Objet_U::duplique() const =0 <objet-u-public-virtual-int-objet-u-duplique-const-equal-0>`
[virtual int Objet_U::duplique() const =0](#objet-u-public-virtual-int-objet-u-duplique-const-equal-0)

est_egal_a#

Definition
int Objet_U::est_egal_a(const Objet_U &) const
Brief description

Renvoie 1 si l’objet x et *this sont une seule et meme instance (meme adresse en memoire).

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:`int Objet_U::est_egal_a(const Objet_U &) const <objet-u-public-int-objet-u-est-egal-a-const-objet-u-ref-const>`
[int Objet_U::est_egal_a(const Objet_U &) const](#objet-u-public-int-objet-u-est-egal-a-const-objet-u-ref-const)

get_info#

Definition
const Type_info * Objet_U::get_info() const
Brief description

Donne des informations sur le type de l’ Objet_U .

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

get_object_id#

Definition
int Objet_U::get_object_id() const
Brief description

Renvoie l’identifiant unique de l’objet object_id_.

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:`int Objet_U::get_object_id() const <objet-u-public-int-objet-u-get-object-id-const>`
[int Objet_U::get_object_id() const](#objet-u-public-int-objet-u-get-object-id-const)

interprete#

Definition
Interprete & Objet_U::interprete()
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 & Objet_U::interprete() <objet-u-public-interprete-ref-objet-u-interprete>`
[Interprete & Objet_U::interprete()](#objet-u-public-interprete-ref-objet-u-interprete)

interprete#

Definition
const Interprete & Objet_U::interprete() const
Brief description
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:`const Interprete & Objet_U::interprete() const <objet-u-public-const-interprete-ref-objet-u-interprete-const>`
[const Interprete & Objet_U::interprete() const](#objet-u-public-const-interprete-ref-objet-u-interprete-const)

le_nom#

Definition
const Nom & Objet_U::le_nom() const
Brief description

Donne le nom de l’ Objet_U Methode a surcharger : renvoie “neant” dans cette implementation.

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:`const Nom & Objet_U::le_nom() const <objet-u-public-const-nom-ref-objet-u-le-nom-const>`
[const Nom & Objet_U::le_nom() const](#objet-u-public-const-nom-ref-objet-u-le-nom-const)

le_type#

Definition
const char * Objet_U::le_type() const
Brief description

Donne le nom du type de l’ Objet_U .

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 char * Objet_U::le_type() const <objet-u-public-const-char-ptr-objet-u-le-type-const>`
[const char * Objet_U::le_type() const](#objet-u-public-const-char-ptr-objet-u-le-type-const)

lire_motcle_non_standard#

Definition
int Objet_U::lire_motcle_non_standard(const Motcle &motlu, Entree &is)
Brief description

Lecture des parametres de type non simple d’un objet_U a partir d’un flot d’entree.

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 Objet_U::lire_motcle_non_standard(const Motcle &motlu, Entree &is) <objet-u-public-int-objet-u-lire-motcle-non-standard-const-motcle-ref-motlu-entree-ref-is>`
[int Objet_U::lire_motcle_non_standard(const Motcle &motlu, Entree &is)](#objet-u-public-int-objet-u-lire-motcle-non-standard-const-motcle-ref-motlu-entree-ref-is)

nommer#

Definition
void Objet_U::nommer(const Nom &)
Brief description

Donne un nom a l’ Objet_U Methode virtuelle a surcharger.

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 Objet_U::nommer(const Nom &) <objet-u-public-void-objet-u-nommer-const-nom-ref>`
[void Objet_U::nommer(const Nom &)](#objet-u-public-void-objet-u-nommer-const-nom-ref)

numero#

Definition
int Objet_U::numero() const
Brief description

Renvoie l’indice de l’objet dans Memoire::data.

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:`int Objet_U::numero() const <objet-u-public-int-objet-u-numero-const>`
[int Objet_U::numero() const](#objet-u-public-int-objet-u-numero-const)

printOn#

Definition
Sortie & Objet_U::printOn(Sortie &) const
Brief description

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

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:`Sortie & Objet_U::printOn(Sortie &) const <objet-u-public-sortie-ref-objet-u-printon-sortie-ref-const>`
[Sortie & Objet_U::printOn(Sortie &) const](#objet-u-public-sortie-ref-objet-u-printon-sortie-ref-const)

que_suis_je#

Definition
const Nom & Objet_U::que_suis_je() const
Brief description

renvoie la chaine identifiant la classe.

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 Nom & Objet_U::que_suis_je() const <objet-u-public-const-nom-ref-objet-u-que-suis-je-const>`
[const Nom & Objet_U::que_suis_je() const](#objet-u-public-const-nom-ref-objet-u-que-suis-je-const)

readOn#

Definition
Entree & Objet_U::readOn(Entree &)
Brief description

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

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:`Entree & Objet_U::readOn(Entree &) <objet-u-public-entree-ref-objet-u-readon-entree-ref>`
[Entree & Objet_U::readOn(Entree &)](#objet-u-public-entree-ref-objet-u-readon-entree-ref)

reprendre#

Definition
int Objet_U::reprendre(Entree &)
Brief description

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

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 Objet_U::reprendre(Entree &) <objet-u-public-int-objet-u-reprendre-entree-ref>`
[int Objet_U::reprendre(Entree &)](#objet-u-public-int-objet-u-reprendre-entree-ref)

sauvegarder#

Definition
int Objet_U::sauvegarder(Sortie &) const
Brief description

Sauvegarde d’un Objet_U sur un flot de sortie Methode a surcharger.

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 Objet_U::sauvegarder(Sortie &) const <objet-u-public-int-objet-u-sauvegarder-sortie-ref-const>`
[int Objet_U::sauvegarder(Sortie &) const](#objet-u-public-int-objet-u-sauvegarder-sortie-ref-const)

taille_memoire#

Definition
virtual unsigned Objet_U::taille_memoire() const =0
Brief description
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:`virtual unsigned Objet_U::taille_memoire() const =0 <objet-u-public-virtual-unsigned-objet-u-taille-memoire-const-equal-0>`
[virtual unsigned Objet_U::taille_memoire() const =0](#objet-u-public-virtual-unsigned-objet-u-taille-memoire-const-equal-0)

~Objet_U#

Definition
Objet_U::~Objet_U() override
Brief description

Destructeur, supprime l’objet de la liste d’objets enregistres dans “memoire”.

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

get_set_nom_du_cas#

Definition
Nom & Objet_U::get_set_nom_du_cas()
Brief description

Renvoie une reference non constante vers le nom du cas (pour pouvoir le modifier).

Detailed description

Cette methode est statique.

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:`Nom & Objet_U::get_set_nom_du_cas() <objet-u-public-static-nom-ref-objet-u-get-set-nom-du-cas>`
[Nom & Objet_U::get_set_nom_du_cas()](#objet-u-public-static-nom-ref-objet-u-get-set-nom-du-cas)

info#

Definition
const Type_info * Objet_U::info()
Brief description

Donne des informations sur le type de l’ Objet_U .

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

nom_du_cas#

Definition
const Nom & Objet_U::nom_du_cas()
Brief description

Renvoie une reference constante vers le nom du cas.

Detailed description

Cette methode est statique.

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 Nom & Objet_U::nom_du_cas() <objet-u-public-static-const-nom-ref-objet-u-nom-du-cas>`
[const Nom & Objet_U::nom_du_cas()](#objet-u-public-static-const-nom-ref-objet-u-nom-du-cas)

self_cast#

Definition
const Objet_U & Objet_U::self_cast(const Objet_U &)
Brief description

methode ajoutee pour caster en python

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

self_cast#

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

Objet_U#

Definition
Objet_U::Objet_U()
Brief description

Constructeur par defaut : attribue un numero d’identifiant unique a l’objet (object_id_), et enregistre l’objet en “memoire”.

Detailed description

en lui donnant un numero . L’object_id_ et tres pratique pour debugger…

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:`Objet_U::Objet_U() <objet-u-protected-objet-u-objet-u>`
[Objet_U::Objet_U()](#objet-u-protected-objet-u-objet-u)

Objet_U#

Definition
Objet_U::Objet_U(const Objet_U &)
Brief description

Constructeur par copie.

Detailed description

Cree un nouveau numero d’objet (ne copie pas le numero de l’autre objet !)

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:`Objet_U::Objet_U(const Objet_U &) <objet-u-protected-objet-u-objet-u-const-objet-u-ref>`
[Objet_U::Objet_U(const Objet_U &)](#objet-u-protected-objet-u-objet-u-const-objet-u-ref)

operator =#

Definition
const Objet_U & Objet_U::operator=(const Objet_U &)
Brief description

Operateur = : ne fait rien (on conserve le numero et l’identifiant)

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 Objet_U & Objet_U::operator=(const Objet_U &) <objet-u-protected-const-objet-u-ref-objet-u-operator-equal-const-objet-u-ref>`
[const Objet_U & Objet_U::operator=(const Objet_U &)](#objet-u-protected-const-objet-u-ref-objet-u-operator-equal-const-objet-u-ref)

Attributes Documentation#

axi (public)
int Objet_U::axi = 0
bidim_axi (public)
int Objet_U::bidim_axi = 0
DEACTIVATE_SIGINT_CATCH (public)
int Objet_U::DEACTIVATE_SIGINT_CATCH = 0
dimension (public)
int Objet_U::dimension = 0
disable_TU (public)
int Objet_U::disable_TU = 0
format_precision_geom (public)
int Objet_U::format_precision_geom = 11
HAS_POINTER (public)
constexpr bool Objet_U::HAS_POINTER = false
info_obj (public)
Type_info Objet_U::info_obj
precision_geom (public)
double Objet_U::precision_geom = 1e-10
stat_per_proc_perf_log (public)
bool Objet_U::stat_per_proc_perf_log = false
_num_obj_ (private)
int Objet_U::_num_obj_
object_id_ (private)
const int Objet_U::object_id_
l_interprete (private)
Interprete * Objet_U::l_interprete = 0
static_obj_counter_ (private)
int Objet_U::static_obj_counter_ = 0

Friends#

  • friend class Entree

  • int operator!=

  • int operator==

  • friend class Sortie