Char_ptr#

#include <Char_ptr.h>
Brief description

class Char_ptr Une chaine de caractere pour nommer les 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:`Char\_ptr <class-char-ptr>`
[Char\_ptr](#class-char-ptr)

Detailed description#

List of Public Methods#

Complete Member Function Documentation#

allocate#

Definition
void Char_ptr::allocate(int n)
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 Char_ptr::allocate(int n) <char-ptr-public-void-char-ptr-allocate-int-n>`
[void Char_ptr::allocate(int n)](#char-ptr-public-void-char-ptr-allocate-int-n)

Char_ptr#

Definition
Char_ptr::Char_ptr()
Brief description

Constructeur par defaut.

Detailed description

Cree la chaine “??”

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:`Char_ptr::Char_ptr() <char-ptr-public-char-ptr-char-ptr>`
[Char_ptr::Char_ptr()](#char-ptr-public-char-ptr-char-ptr)

Char_ptr#

Definition
Char_ptr::Char_ptr(const char *nom)
Brief description

Construction d’un nom a partir d’une chaine de caracteres La chaine est copiee.

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:`Char_ptr::Char_ptr(const char *nom) <char-ptr-public-char-ptr-char-ptr-const-char-ptr-nom>`
[Char_ptr::Char_ptr(const char *nom)](#char-ptr-public-char-ptr-char-ptr-const-char-ptr-nom)

Char_ptr#

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

Constructeur par copie d’un nom.

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:`Char_ptr::Char_ptr(const Char_ptr &) <char-ptr-public-char-ptr-char-ptr-const-char-ptr-ref>`
[Char_ptr::Char_ptr(const Char_ptr &)](#char-ptr-public-char-ptr-char-ptr-const-char-ptr-ref)

getChar#

Definition
char * Char_ptr::getChar()
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:`char * Char_ptr::getChar() <char-ptr-public-char-ptr-char-ptr-getchar>`
[char * Char_ptr::getChar()](#char-ptr-public-char-ptr-char-ptr-getchar)

getChar#

Definition
const char * Char_ptr::getChar() const
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:`const char * Char_ptr::getChar() const <char-ptr-public-const-char-ptr-char-ptr-getchar-const>`
[const char * Char_ptr::getChar() const](#char-ptr-public-const-char-ptr-char-ptr-getchar-const)

longueur#

Definition
int Char_ptr::longueur() const
Brief description

Renvoie le nombre de caracteres de la chaine du Char_ptr y compris le caractere zero de fin de chaine.

Detailed description

Exemple : Char_ptr (“hello”). longueur() = = 6

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 Char_ptr::longueur() const <char-ptr-public-int-char-ptr-longueur-const>`
[int Char_ptr::longueur() const](#char-ptr-public-int-char-ptr-longueur-const)

operator char *#

Definition
Char_ptr::operator char *() const
Brief description

Retourne un pointeur sur la chaine de caractere du nom.

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:`Char_ptr::operator char *() const <char-ptr-public-char-ptr-operator-char-ptr-const>`
[Char_ptr::operator char *() const](#char-ptr-public-char-ptr-operator-char-ptr-const)

operator =#

Definition
Char_ptr & Char_ptr::operator=(const char *)
Brief description

Copie la chaine nom.

Detailed description

Modif BM pour que nom puisse pointer sur une sous - partie de nom_

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:`Char_ptr & Char_ptr::operator=(const char *) <char-ptr-public-char-ptr-ref-char-ptr-operator-equal-const-char-ptr>`
[Char_ptr & Char_ptr::operator=(const char *)](#char-ptr-public-char-ptr-ref-char-ptr-operator-equal-const-char-ptr)

operator =#

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

Copie le Char_ptr nom.

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:`Char_ptr & Char_ptr::operator=(const Char_ptr &) <char-ptr-public-char-ptr-ref-char-ptr-operator-equal-const-char-ptr-ref>`
[Char_ptr & Char_ptr::operator=(const Char_ptr &)](#char-ptr-public-char-ptr-ref-char-ptr-operator-equal-const-char-ptr-ref)

~Char_ptr#

Definition
Char_ptr::~Char_ptr()
Brief description

Destructeur.

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:`Char_ptr::~Char_ptr() <char-ptr-public-char-ptr-dtor-char-ptr>`
[Char_ptr::~Char_ptr()](#char-ptr-public-char-ptr-dtor-char-ptr)

Attributes Documentation#

nom_ (protected)
char* Char_ptr::nom_