TrioCFD 1.9.8
TrioCFD documentation
Loading...
Searching...
No Matches
TRUSTList< _TYPE_ > Class Template Reference

: Classe qui sert a representer une liste de reels int/double precision. More...

#include <TRUSTList.h>

Inheritance diagram for TRUSTList< _TYPE_ >:
[legend]
Collaboration diagram for TRUSTList< _TYPE_ >:
[legend]

Public Member Functions

 TRUSTList ()
 TRUSTList (const TRUSTList &a_list)
SortieprintOn (Sortie &os) const
 Ecriture d'une liste sur un flot de sortie les elements separes par des virgules figurent entre des accolades.
EntreereadOn (Entree &is)
 Lecture d'une liste sur un flot d'entree les elements separes par des virgules figurent entre des accolades.
int size () const
int contient (_TYPE_) const
 Verifie si un element appartient ou non a la liste.
int rang (_TYPE_) const
 renvoie le rang d'un element dans la liste si un element apparait plusieurs fois, renvoie le rang du premier.
TRUSTListElem< _TYPE_ > & dernier ()
 Renvoie le dernier element de la liste.
const TRUSTListElem< _TYPE_ > & dernier () const
_TYPE_ & operator[] (int)
 Operateur d'acces au ieme int de la liste.
const _TYPE_ & operator[] (int) const
TRUSTListadd (_TYPE_)
 insertion en queue
TRUSTListadd_if_not (_TYPE_)
 Ajout d'un element a la liste ssi il n'existe pas deja.
TRUSTListoperator= (const TRUSTList &)
 Affectation.
void suppr (_TYPE_)
 Supprime un element contenu dans la liste.
void vide ()
 Vide la liste.
void calcule_min_max ()
Public Member Functions inherited from TRUSTListElem< _TYPE_ >
 TRUSTListElem ()
 TRUSTListElem (const _TYPE_ x)
 TRUSTListElem (const TRUSTListElem &)
 Constructeur par copie.
 ~TRUSTListElem ()
int est_vide () const
int est_dernier () const
_TYPE_ & valeur ()
_TYPE_ valeur () const
TRUSTListElemadd (_TYPE_)
 insertion en queue
TRUSTListElemsuivant ()
const TRUSTListElemsuivant () const

Friends

class TRUSTList_Curseur< _TYPE_ >
template<typename T>
int operator== (const TRUSTList< T > &, const TRUSTList< T > &)

Additional Inherited Members

Protected Attributes inherited from TRUSTListElem< _TYPE_ >
_TYPE_ data
TRUSTListElemsuivant_

Detailed Description

template<typename _TYPE_>
class TRUSTList< _TYPE_ >

: Classe qui sert a representer une liste de reels int/double precision.

On ne peut pas utiliser la classe container List avec des objets du type int/double car int/double est un type predefini du C++ qui ne possede pas les fonctions exigees par List< >.

Definition at line 32 of file TRUSTList.h.

Constructor & Destructor Documentation

◆ TRUSTList() [1/2]

template<typename _TYPE_>
TRUSTList< _TYPE_ >::TRUSTList ( )
inline

Definition at line 37 of file TRUSTList.h.

◆ TRUSTList() [2/2]

template<typename _TYPE_>
TRUSTList< _TYPE_ >::TRUSTList ( const TRUSTList< _TYPE_ > & a_list)
inline

Definition at line 46 of file TRUSTList.h.

Member Function Documentation

◆ add()

template<typename _TYPE_>
TRUSTList< _TYPE_ > & TRUSTList< _TYPE_ >::add ( _TYPE_ value_to_add)
inline

insertion en queue

Definition at line 85 of file TRUSTList.tpp.

◆ add_if_not()

template<typename _TYPE_>
TRUSTList< _TYPE_ > & TRUSTList< _TYPE_ >::add_if_not ( _TYPE_ x)
inline

Ajout d'un element a la liste ssi il n'existe pas deja.

Definition at line 117 of file TRUSTList.tpp.

◆ calcule_min_max()

template<typename _TYPE_>
void TRUSTList< _TYPE_ >::calcule_min_max ( )
inline

Definition at line 252 of file TRUSTList.tpp.

◆ contient()

template<typename _TYPE_>
int TRUSTList< _TYPE_ >::contient ( _TYPE_ x) const
inline

Verifie si un element appartient ou non a la liste.

Definition at line 127 of file TRUSTList.tpp.

◆ dernier() [1/2]

template<typename _TYPE_>
TRUSTListElem< _TYPE_ > & TRUSTList< _TYPE_ >::dernier ( )
inline

Renvoie le dernier element de la liste.

Definition at line 75 of file TRUSTList.h.

◆ dernier() [2/2]

template<typename _TYPE_>
const TRUSTListElem< _TYPE_ > & TRUSTList< _TYPE_ >::dernier ( ) const
inline

Definition at line 76 of file TRUSTList.h.

◆ operator=()

template<typename _TYPE_>
TRUSTList< _TYPE_ > & TRUSTList< _TYPE_ >::operator= ( const TRUSTList< _TYPE_ > & a_list)
inline

Affectation.

Les elements sont copies

Definition at line 65 of file TRUSTList.tpp.

◆ operator[]() [1/2]

template<typename _TYPE_>
_TYPE_ & TRUSTList< _TYPE_ >::operator[] ( int i)
inline

Operateur d'acces au ieme int de la liste.

Definition at line 163 of file TRUSTList.tpp.

◆ operator[]() [2/2]

template<typename _TYPE_>
const _TYPE_ & TRUSTList< _TYPE_ >::operator[] ( int i) const
inline

Definition at line 176 of file TRUSTList.tpp.

◆ printOn()

template<typename _TYPE_>
Sortie & TRUSTList< _TYPE_ >::printOn ( Sortie & os) const
inline

Ecriture d'une liste sur un flot de sortie les elements separes par des virgules figurent entre des accolades.

Definition at line 23 of file TRUSTList.tpp.

◆ rang()

template<typename _TYPE_>
int TRUSTList< _TYPE_ >::rang ( _TYPE_ x) const
inline

renvoie le rang d'un element dans la liste si un element apparait plusieurs fois, renvoie le rang du premier.

Definition at line 144 of file TRUSTList.tpp.

◆ readOn()

template<typename _TYPE_>
Entree & TRUSTList< _TYPE_ >::readOn ( Entree & is)
inline

Lecture d'une liste sur un flot d'entree les elements separes par des virgules figurent entre des accolades.

Definition at line 43 of file TRUSTList.tpp.

◆ size()

template<typename _TYPE_>
int TRUSTList< _TYPE_ >::size ( ) const
inline

Definition at line 68 of file TRUSTList.h.

◆ suppr()

template<typename _TYPE_>
void TRUSTList< _TYPE_ >::suppr ( _TYPE_ obj)
inline

Supprime un element contenu dans la liste.

Definition at line 206 of file TRUSTList.tpp.

◆ vide()

template<typename _TYPE_>
void TRUSTList< _TYPE_ >::vide ( )
inline

Vide la liste.

Definition at line 270 of file TRUSTList.tpp.

◆ operator==

template<typename _TYPE_>
template<typename T>
int operator== ( const TRUSTList< T > & ,
const TRUSTList< T > &  )
friend

◆ TRUSTList_Curseur< _TYPE_ >

template<typename _TYPE_>
friend class TRUSTList_Curseur< _TYPE_ >
friend

Definition at line 1 of file TRUSTList.h.


The documentation for this class was generated from the following files: