MD_Vector#

#include <MD_Vector.h>
Brief description

: Cette classe est un OWN_PTR mais l’objet pointe est partage entre plusieurs

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:`MD\_Vector <class-md-vector>`
[MD\_Vector](#class-md-vector)

Detailed description#

instances de cette classe. L’objet pointe ne peut etre accede qu’en “const” et n’est accessible que par des instances de MD_Vector . Donc il n’existe pas de moyen d’y acceder en “non const” autrement qu’avec un cast. La methode attach() et le constructeur par copie rattachent le pointeur a une instance existante deja attachee a un pointeur. La methode attach_detach() s’approprie l’objet pointe par le OWN_PTR et detache l’objet du OWN_PTR. C’est la seule facon de “construire” les objets MD_Vector (evite une copie, et permet d’assurer que le MD_Vect ne peut plus etre modifie une fois que qu’il a ete attache a un MD_Vector ) ATTENTION: la securite de la methode repose sur le fait que l’instance pointee par MD_Vector n’est accessible nulle part ailleurs que par des objets MD_Vector . NE PAS AJOUTER de methode attach(const MD_Vector_base &), cela casse la securite de la classe !!! (B.Mathieu) inline d’un maximum de methodes pour ne pas penaliser les tableaux non distribues, tout en evitant d’inclure MD_Vector_base.h

List of Public Methods#

Complete Member Function Documentation#

attach#

Definition
void MD_Vector::attach(const MD_Vector &)
Brief description

Detache le pointeur et attache au meme objet que src.

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 MD_Vector::attach(const MD_Vector &) <md-vector-public-void-md-vector-attach-const-md-vector-ref>`
[void MD_Vector::attach(const MD_Vector &)](#md-vector-public-void-md-vector-attach-const-md-vector-ref)

copy#

Definition
void MD_Vector::copy(const MD_Vector_base &)
Brief description

construction d’un objet MD_Vector par copie d’un objet existant.

Detailed description

C’est la methode recommandee pour creer un objet MD_Vector (autrement que par copie d’un autre MD_Vector )

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 MD_Vector::copy(const MD_Vector_base &) <md-vector-public-void-md-vector-copy-const-md-vector-base-ref>`
[void MD_Vector::copy(const MD_Vector_base &)](#md-vector-public-void-md-vector-copy-const-md-vector-base-ref)

detach#

Definition
void MD_Vector::detach()
Brief description

Detache le pointeur de l’objet pointe.

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 MD_Vector::detach() <md-vector-public-void-md-vector-detach>`
[void MD_Vector::detach()](#md-vector-public-void-md-vector-detach)

MD_Vector#

Definition
MD_Vector::MD_Vector()
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:`MD_Vector::MD_Vector() <md-vector-public-md-vector-md-vector>`
[MD_Vector::MD_Vector()](#md-vector-public-md-vector-md-vector)

MD_Vector#

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

constructeur par copie, associe le pointeur au meme objet que la source

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:`MD_Vector::MD_Vector(const MD_Vector &) <md-vector-public-md-vector-md-vector-const-md-vector-ref>`
[MD_Vector::MD_Vector(const MD_Vector &)](#md-vector-public-md-vector-md-vector-const-md-vector-ref)

non_nul#

Definition
int MD_Vector::non_nul() 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:`int MD_Vector::non_nul() const <md-vector-public-int-md-vector-non-nul-const>`
[int MD_Vector::non_nul() const](#md-vector-public-int-md-vector-non-nul-const)

operator! =#

Definition
int MD_Vector::operator!=(const MD_Vector &) const
Brief description

reponse inverse de = = …

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:`int MD_Vector::operator!=(const MD_Vector &) const <md-vector-public-int-md-vector-operator!-equal-const-md-vector-ref-const>`
[int MD_Vector::operator!=(const MD_Vector &) const](#md-vector-public-int-md-vector-operator!-equal-const-md-vector-ref-const)

operator - >#

Definition
const MD_Vector_base * MD_Vector::operator->() const
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 MD_Vector_base * MD_Vector::operator->() const <md-vector-public-const-md-vector-base-ptr-md-vector-operator-const>`
[const MD_Vector_base * MD_Vector::operator->() const](#md-vector-public-const-md-vector-base-ptr-md-vector-operator-const)

operator =#

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

idem que attach(src)

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:`MD_Vector & MD_Vector::operator=(const MD_Vector &) <md-vector-public-md-vector-ref-md-vector-operator-equal-const-md-vector-ref>`
[MD_Vector & MD_Vector::operator=(const MD_Vector &)](#md-vector-public-md-vector-ref-md-vector-operator-equal-const-md-vector-ref)

operator = =#

Definition
int MD_Vector::operator==(const MD_Vector &) const
Brief description

renvoie 1 si les structures sont identiques, 0 sinon

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 MD_Vector::operator==(const MD_Vector &) const <md-vector-public-int-md-vector-operator-equal-equal-const-md-vector-ref-const>`
[int MD_Vector::operator==(const MD_Vector &) const](#md-vector-public-int-md-vector-operator-equal-equal-const-md-vector-ref-const)

valeur#

Definition
const MD_Vector_base & MD_Vector::valeur() 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 MD_Vector_base & MD_Vector::valeur() const <md-vector-public-const-md-vector-base-ref-md-vector-valeur-const>`
[const MD_Vector_base & MD_Vector::valeur() const](#md-vector-public-const-md-vector-base-ref-md-vector-valeur-const)

Attributes Documentation#

ptr_ (private)
std::shared_ptr<MD_Vector_base> MD_Vector::ptr_