16#ifndef TRUSTLists_included
17#define TRUSTLists_included
23 Cerr <<
"Unable to carry out allocation " << finl;
30template<
typename _TYPE_>
63 data = new TRUSTList<_TYPE_>[vect.sz];
68 else while (i--)
data[i] = vect[i];
74 while (i--)
data[i].printOn(s);
86 inline int size()
const {
return sz; }
102template<
typename _TYPE_>
113 while (i--)
data[i] = vect[i];
122template<
typename _TYPE_>
125 int i =
sz, retour = -1;
138template<
typename _TYPE_>
141 assert((i >= 0) && (i <
sz));
145template<
typename _TYPE_>
148 assert((i >= 0) && (i <
sz));
155template<
typename _TYPE_>
158 assert(
sz == 0 &&
data == 0);
160 if (i == 0)
data = 0;
Class defining operators and methods for all reading operation in an input flow (file,...
static void exit(int exit_code=-1)
Exit routine for TRUST within a Kokkos region.
Base class for output streams.
: Class used to represent a list of int/double precision reals.
: An array of lists of type IntList
TRUSTList< _TYPE_ > & operator[](int)
int search(const TRUSTList< _TYPE_ > &) const
Recherche d'une liste dans le tableau.
TRUSTLists & operator=(const TRUSTLists &)
Copie et affectation.
Entree & readOn(Entree &is)
TRUSTLists(const TRUSTLists &vect)
Sortie & printOn(Sortie &s) const
void dimensionner(int)
Resizes an array of lists.
const TRUSTList< _TYPE_ > & operator[](int) const
Acces a la ieme liste du tableau.