Objet_U_ptr#

#include <Objet_U_ptr.h>
Brief description

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

Detailed description#

Le constructeur par defaut construit un pointeur “nul”.

Inherits from#

Inherited by#

Inheritance graph#

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

../../../../../_images/classObjet__U__ptr__inherit__graph.png

List of Public Static Methods#

List of Public Methods#

List of Protected Methods#

Complete Member Function Documentation#

info#

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

self_cast#

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

self_cast#

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

associer_#

Definition
int Objet_U_ptr::associer_(Objet_U &objet) override
Brief description

Associe l’ Objet_U a un autre Objet_U Methode virtuelle 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:`int Objet_U_ptr::associer_(Objet_U &objet) override <objet-u-ptr-public-int-objet-u-ptr-associer-underscore-objet-u-ref-objet-override>`
[int Objet_U_ptr::associer_(Objet_U &objet) override](#objet-u-ptr-public-int-objet-u-ptr-associer-underscore-objet-u-ref-objet-override)

detach#

Definition
void Objet_U_ptr::detach()
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 Objet_U_ptr::detach() <objet-u-ptr-public-void-objet-u-ptr-detach>`
[void Objet_U_ptr::detach()](#objet-u-ptr-public-void-objet-u-ptr-detach)

est_nul#

Definition
bool Objet_U_ptr::est_nul() 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:`bool Objet_U_ptr::est_nul() const <objet-u-ptr-public-bool-objet-u-ptr-est-nul-const>`
[bool Objet_U_ptr::est_nul() const](#objet-u-ptr-public-bool-objet-u-ptr-est-nul-const)

get_info#

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

le_nom#

Definition
const Nom & Objet_U_ptr::le_nom() const override
Brief description

Renvoie ref_().

Detailed description

le_nom() si le pointeur est non nul ou “Pointeur Nul”

Reimplements:

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

non_nul#

Definition
bool Objet_U_ptr::non_nul() const
Brief description

Renvoie true si le pointeur est non_nul Renvoie false sinon.

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:`bool Objet_U_ptr::non_nul() const <objet-u-ptr-public-bool-objet-u-ptr-non-nul-const>`
[bool Objet_U_ptr::non_nul() const](#objet-u-ptr-public-bool-objet-u-ptr-non-nul-const)

Objet_U_ptr#

Definition
Objet_U_ptr::Objet_U_ptr(const Objet_U_ptr &)=delete
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_ptr::Objet_U_ptr(const Objet_U_ptr &)=delete <objet-u-ptr-public-objet-u-ptr-objet-u-ptr-const-objet-u-ptr-ref-equal-delete>`
[Objet_U_ptr::Objet_U_ptr(const Objet_U_ptr &)=delete](#objet-u-ptr-public-objet-u-ptr-objet-u-ptr-const-objet-u-ptr-ref-equal-delete)

operator =#

Definition
const Objet_U_ptr & Objet_U_ptr::operator=(const Objet_U_ptr &)=delete
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 Objet_U_ptr & Objet_U_ptr::operator=(const Objet_U_ptr &)=delete <objet-u-ptr-public-const-objet-u-ptr-ref-objet-u-ptr-operator-equal-const-objet-u-ptr-ref-equal-delete>`
[const Objet_U_ptr & Objet_U_ptr::operator=(const Objet_U_ptr &)=delete](#objet-u-ptr-public-const-objet-u-ptr-ref-objet-u-ptr-operator-equal-const-objet-u-ptr-ref-equal-delete)

typer#

Definition
Objet_U * Objet_U_ptr::typer(const char *nom_type)
Brief description

Essaie de creer une instance du type “type”.

Detailed description

si type n’est pas un type ou type n’est pas instanciable = >arret si type n’est pas un sous - type du type du pointeur = >retour 0 si ok, renvoie l’adresse de l’objet cree.

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

change_num#

Definition
int Objet_U_ptr::change_num(const int *const) override
Brief description

Pour mettre a jour les cles lorsque les Objet_U ont etes renumerotes.

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

check_Objet_U_ptr_type#

Definition
int Objet_U_ptr::check_Objet_U_ptr_type(const Objet_U *ptr) const
Brief description

Verifie que l’objet pointe par ptr est d’un type acceptable pour le pointeur (avec get_info_ptr)

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_ptr::check_Objet_U_ptr_type(const Objet_U *ptr) const <objet-u-ptr-protected-int-objet-u-ptr-check-objet-u-ptr-type-const-objet-u-ptr-ptr-const>`
[int Objet_U_ptr::check_Objet_U_ptr_type(const Objet_U *ptr) const](#objet-u-ptr-protected-int-objet-u-ptr-check-objet-u-ptr-type-const-objet-u-ptr-ptr-const)

get_info_ptr#

Definition
virtual const Type_info & Objet_U_ptr::get_info_ptr() 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 const Type_info & Objet_U_ptr::get_info_ptr() const =0 <objet-u-ptr-protected-virtual-const-type-info-ref-objet-u-ptr-get-info-ptr-const-equal-0>`
[virtual const Type_info & Objet_U_ptr::get_info_ptr() const =0](#objet-u-ptr-protected-virtual-const-type-info-ref-objet-u-ptr-get-info-ptr-const-equal-0)

get_Objet_U_ptr#

Definition
Objet_U * Objet_U_ptr::get_Objet_U_ptr() const
Brief description

Renvoie un pointeur sur l’ Objet_U associe ATTENTION: l’adresse peut etre nulle (si le pointeur est nul)

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 * Objet_U_ptr::get_Objet_U_ptr() const <objet-u-ptr-protected-objet-u-ptr-objet-u-ptr-get-objet-u-ptr-const>`
[Objet_U * Objet_U_ptr::get_Objet_U_ptr() const](#objet-u-ptr-protected-objet-u-ptr-objet-u-ptr-get-objet-u-ptr-const)

get_Objet_U_ptr_check#

Definition
Objet_U * Objet_U_ptr::get_Objet_U_ptr_check() const
Brief description

Verifie si le pointeur est valide.

Detailed description

Le pointeur est valide si cle_ = = - 1 ou si la_memoire().objet_u(cle_) a le meme object_id_ que celui enregistre dans ptr_object_id_. Si le pointeur n’est pas valide, arret du programme. Renvoie l’adresse de l’objet pointe (de type Objet_U )

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 * Objet_U_ptr::get_Objet_U_ptr_check() const <objet-u-ptr-protected-objet-u-ptr-objet-u-ptr-get-objet-u-ptr-check-const>`
[Objet_U * Objet_U_ptr::get_Objet_U_ptr_check() const](#objet-u-ptr-protected-objet-u-ptr-objet-u-ptr-get-objet-u-ptr-check-const)

Objet_U_ptr#

Definition
Objet_U_ptr::Objet_U_ptr()
Brief description

construit un pointeur nul (cle a - 1)

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

printOn#

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

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

Detailed description

Reimplements:

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

readOn#

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

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

Detailed description

Reimplements:

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

recopie#

Definition
void Objet_U_ptr::recopie(const Objet_U &)
Brief description

Duplique l’ Objet_U obj puis change le pointeur vers cette copie.

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

set_Objet_U_ptr#

Definition
void Objet_U_ptr::set_Objet_U_ptr(Objet_U *)
Brief description

Fait pointer *this sur l’objet *ptr L’adresse peut etre nulle (pointeur nul).

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 Objet_U_ptr::set_Objet_U_ptr(Objet_U *) <objet-u-ptr-protected-void-objet-u-ptr-set-objet-u-ptr-objet-u-ptr>`
[void Objet_U_ptr::set_Objet_U_ptr(Objet_U *)](#objet-u-ptr-protected-void-objet-u-ptr-set-objet-u-ptr-objet-u-ptr)

~Objet_U_ptr#

Definition
Objet_U_ptr::~Objet_U_ptr() override
Brief description

Destructeur.

Detailed description

Il ne detruit pas l’objet en reference

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_ptr::~Objet_U_ptr() override <objet-u-ptr-protected-objet-u-ptr-dtor-objet-u-ptr-override>`
[Objet_U_ptr::~Objet_U_ptr() override](#objet-u-ptr-protected-objet-u-ptr-dtor-objet-u-ptr-override)

Attributes Documentation#

HAS_POINTER (public)
constexpr bool Objet_U_ptr::HAS_POINTER = true
info_obj (public)
const Type_info Objet_U_ptr::info_obj
cle_ (private)
int Objet_U_ptr::cle_ = - 1
ptr_object_id_ (private)
int Objet_U_ptr::ptr_object_id_ = - 1